зеркало из https://github.com/microsoft/git.git
read_gitfile_gently: clarify return value ownership.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
d83d846e84
Коммит
ea1d87560c
3
setup.c
3
setup.c
|
@ -541,7 +541,8 @@ void read_gitfile_error_die(int error_code, const char *path, const char *dir)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Try to read the location of the git directory from the .git file,
|
* Try to read the location of the git directory from the .git file,
|
||||||
* return path to git directory if found.
|
* return path to git directory if found. The return value comes from
|
||||||
|
* a shared buffer.
|
||||||
*
|
*
|
||||||
* On failure, if return_error_code is not NULL, return_error_code
|
* On failure, if return_error_code is not NULL, return_error_code
|
||||||
* will be set to an error code and NULL will be returned. If
|
* will be set to an error code and NULL will be returned. If
|
||||||
|
|
Загрузка…
Ссылка в новой задаче