summaryrefslogtreecommitdiff
path: root/Documentation/technical
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-12-03 11:42:03 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-03 11:44:12 -0800
commitdaad3aa255ec5c08f95867feaaf8f4db03346e70 (patch)
tree2c2ea5ff1fdef51c5562e0f768cc678c9b76e759 /Documentation/technical
parentMerge branch 'nd/glossary-content-pathspec-markup' (diff)
parentGit 1.8.5.1 (diff)
downloadtgif-daad3aa255ec5c08f95867feaaf8f4db03346e70.tar.xz
Sync with 1.8.5.1
* maint: Git 1.8.5.1 ref-iteration doc: add_submodule_odb() returns 0 for success
Diffstat (limited to 'Documentation/technical')
-rw-r--r--Documentation/technical/api-ref-iteration.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/technical/api-ref-iteration.txt b/Documentation/technical/api-ref-iteration.txt
index aa1c50f181..02adfd45d3 100644
--- a/Documentation/technical/api-ref-iteration.txt
+++ b/Documentation/technical/api-ref-iteration.txt
@@ -50,10 +50,10 @@ submodules object database. You can do this by a code-snippet like
this:
const char *path = "path/to/submodule"
- if (!add_submodule_odb(path))
+ if (add_submodule_odb(path))
die("Error submodule '%s' not populated.", path);
-`add_submodule_odb()` will return an non-zero value on success. If you
+`add_submodule_odb()` will return zero on success. If you
do not do this you will get an error for each ref that it does not point
to a valid object.