summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorDavid Turner <dturner@twopensource.com>2015-07-21 17:04:54 -0400
committerJunio C Hamano <gitster@pobox.com>2015-07-21 14:08:26 -0700
commit0f2a71d9923b4cf010ad0801eb71ee3666798204 (patch)
treed334f248df08120fa6816da33f37677732ed7161 /refs.h
parentafcb2e7a3b855887e79d1ee6d70ec80ab6456a64 (diff)
downloadgit-0f2a71d9923b4cf010ad0801eb71ee3666798204.tar.gz
refs: add REF_FORCE_CREATE_REFLOG flag
Add a flag to allow forcing the creation of a reflog even if the ref name and core.logAllRefUpdates setting would not ordinarily cause ref creation. In a moment, we will use this to add options to git tag and git update-ref to force reflog creation. Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index de68a452b7..4f1b236568 100644
--- a/refs.h
+++ b/refs.h
@@ -187,6 +187,7 @@ extern int peel_ref(const char *refname, unsigned char *sha1);
* Other flags are reserved for internal use.
*/
#define REF_NODEREF 0x01
+#define REF_FORCE_CREATE_REFLOG 0x40
/*
* Setup reflog before using. Fill in err and return -1 on failure.