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:
Han-Wen Nienhuys 2017-09-26 13:21:49 +02:00 коммит произвёл Junio C Hamano
Родитель d83d846e84
Коммит ea1d87560c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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