Sync with 1.8.5.1

* maint:
  Git 1.8.5.1
  ref-iteration doc: add_submodule_odb() returns 0 for success
This commit is contained in:
Junio C Hamano 2013-12-03 11:42:03 -08:00
commit daad3aa255
3 changed files with 13 additions and 3 deletions

View File

@ -0,0 +1,9 @@
Git v1.8.5.1 Release Notes
==========================
Fixes since v1.8.5
------------------
* "git submodule init" copied "submodule.$name.update" settings from
.gitmodules to .git/config without making sure if the suggested
value was sensible.

View File

@ -43,9 +43,10 @@ unreleased) version of Git, that is available from 'master'
branch of the `git.git` repository. branch of the `git.git` repository.
Documentation for older releases are available here: Documentation for older releases are available here:
* link:v1.8.5/git.html[documentation for release 1.8.5] * link:v1.8.5.1/git.html[documentation for release 1.8.5.1]
* release notes for * release notes for
link:RelNotes/1.8.5.1.txt[1.8.5.1],
link:RelNotes/1.8.5.txt[1.8.5]. link:RelNotes/1.8.5.txt[1.8.5].
* link:v1.8.4.5/git.html[documentation for release 1.8.4.5] * link:v1.8.4.5/git.html[documentation for release 1.8.4.5]

View File

@ -50,10 +50,10 @@ submodules object database. You can do this by a code-snippet like
this: this:
const char *path = "path/to/submodule" const char *path = "path/to/submodule"
if (!add_submodule_odb(path)) if (add_submodule_odb(path))
die("Error submodule '%s' not populated.", 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 do not do this you will get an error for each ref that it does not point
to a valid object. to a valid object.