summaryrefslogtreecommitdiff
path: root/CONVENTIONS
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2008-10-31 18:16:26 -0700
committerShawn O. Pearce <spearce@spearce.org>2008-10-31 18:30:40 -0700
commitde2220a48fcf7901432f8093d3223e65f4072ff7 (patch)
tree09845e76453ec9527128f73fd5ac7114e9158432 /CONVENTIONS
parent4f9339df943c53117a5fc8e86e2f38716ff3a668 (diff)
downloadlibgit2-de2220a48fcf7901432f8093d3223e65f4072ff7.tar.gz
Replace git_result_t with int
This seems to be preferred on the mailing list. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'CONVENTIONS')
-rw-r--r--CONVENTIONS10
1 files changed, 5 insertions, 5 deletions
diff --git a/CONVENTIONS b/CONVENTIONS
index 60811b0ba..4b09c08ae 100644
--- a/CONVENTIONS
+++ b/CONVENTIONS
@@ -37,12 +37,12 @@ and may disappear or change their signature in a future release.
Calling Conventions
-------------------
-Functions should prefer to return a 'git_result_t' to indicate
-success/failure and supply any output through the first argument
-(or first few arguments if multiple outputs are supplied).
+Functions should prefer to return a 'int' to indicate success or
+failure and supply any output through the first argument (or first
+few arguments if multiple outputs are supplied).
-git_result_t status codes are 0 for GIT_SUCCESS and < 0 for an
-error. This permits common POSIX result testing:
+int status codes are 0 for GIT_SUCCESS and < 0 for an error.
+This permits common POSIX result testing:
----
if (git_odb_open(&odb, path))