summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2016-04-24 02:34:12 (GMT)
committerMichael Haggerty <mhagger@alum.mit.edu>2016-05-05 14:37:30 (GMT)
commite95792e532bde75fd4a1e91aecfcf9a28ba23955 (patch)
tree607bc55b37f805c2361b8d1b0f514deaf1ccdc37 /cache.h
parente167a5673e25b960dce118fb967d54da30b69def (diff)
downloadgit-e95792e532bde75fd4a1e91aecfcf9a28ba23955.zip
git-e95792e532bde75fd4a1e91aecfcf9a28ba23955.tar.gz
git-e95792e532bde75fd4a1e91aecfcf9a28ba23955.tar.bz2
safe_create_leading_directories(): improve docstring
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>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 2711048..4134f64 100644
--- 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,