diff options
author | David Turner <dturner@twopensource.com> | 2015-07-21 17:04:54 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-21 14:08:26 -0700 |
commit | 0f2a71d9923b4cf010ad0801eb71ee3666798204 (patch) | |
tree | d334f248df08120fa6816da33f37677732ed7161 /refs.h | |
parent | afcb2e7a3b855887e79d1ee6d70ec80ab6456a64 (diff) | |
download | git-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. |