Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
read_gitfile_gently: clarify return value ownership.
author
Han-Wen Nienhuys
<hanwen@google.com>
Tue, 26 Sep 2017 11:21:49 +0000
(13:21 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 27 Sep 2017 00:14:02 +0000
(09:14 +0900)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d83d846
)
diff --git
a/setup.c
b/setup.c
index 6d8380acd2b66ee7d8206639d4b03933afb1816e..d777ff34b7daf50fb24a8653a7e26e3e95b8c0c7 100644
(file)
--- 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