aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-10-01 12:28:37 +0200
committerJunio C Hamano <gitster@pobox.com>2014-10-01 13:53:28 -0700
commit47ba4662bfd755829edd24428cf2e4bc492d70a6 (patch)
tree4f04a57b1fda2809d50625524fbe4907880b0854 /cache.h
parent751bacedaa507b7b6d10b2c1f48e019a01a8fa6e (diff)
downloadgit-47ba4662bfd755829edd24428cf2e4bc492d70a6.tar.gz
git-47ba4662bfd755829edd24428cf2e4bc492d70a6.tar.xz
lockfile: rename LOCK_NODEREF to LOCK_NO_DEREF
This makes it harder to misread the name as LOCK_NODE_REF. Suggested-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 414e93ca6..7ea4e8125 100644
--- a/cache.h
+++ b/cache.h
@@ -583,7 +583,7 @@ struct lock_file {
struct strbuf filename;
};
#define LOCK_DIE_ON_ERROR 1
-#define LOCK_NODEREF 2
+#define LOCK_NO_DEREF 2
extern int unable_to_lock_error(const char *path, int err);
extern void unable_to_lock_message(const char *path, int err,
struct strbuf *buf);