summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2017-09-26 11:21:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-27 00:14:02 (GMT)
commitea1d87560c5d66396d1785a208783cbf7a1651c2 (patch)
tree02d2f3fcc486861413d875639775121cf4c15499 /setup.c
parentd83d846e84d6ba6c7c4221d2681dfde820949362 (diff)
downloadgit-ea1d87560c5d66396d1785a208783cbf7a1651c2.zip
git-ea1d87560c5d66396d1785a208783cbf7a1651c2.tar.gz
git-ea1d87560c5d66396d1785a208783cbf7a1651c2.tar.bz2
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>
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 6d8380a..d777ff3 100644
--- a/setup.c
+++ b/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,
- * 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
* will be set to an error code and NULL will be returned. If