Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
safe_create_leading_directories(): improve docstring
author
Michael Haggerty
<mhagger@alum.mit.edu>
Sun, 24 Apr 2016 02:34:12 +0000
(
04:34
+0200)
committer
Michael Haggerty
<mhagger@alum.mit.edu>
Thu, 5 May 2016 14:37:30 +0000
(16:37 +0200)
Document the difference between this function and
safe_create_leading_directories_const(), and that the former restores
path before returning.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
cache.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e167a56
)
diff --git
a/cache.h
b/cache.h
index 2711048cad7d5c7bba04c5737aa6142caf49d023..4134f648eca353711764266fb4283eeb3acf8165 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-993,6
+993,11
@@
int adjust_shared_perm(const char *path);
* directory while we were working. To be robust against this kind of
* race, callers might want to try invoking the function again when it
* returns SCLD_VANISHED.
+ *
+ * safe_create_leading_directories() temporarily changes path while it
+ * is working but restores it before returning.
+ * safe_create_leading_directories_const() doesn't modify path, even
+ * temporarily.
*/
enum scld_error {
SCLD_OK = 0,