aboutsummaryrefslogtreecommitdiff
path: root/refs/refs-internal.h
diff options
context:
space:
mode:
authorDavid Turner <dturner@twopensource.com>2016-02-24 17:58:50 -0500
committerMichael Haggerty <mhagger@alum.mit.edu>2016-06-13 11:23:49 +0200
commitd99aa884dff33d48d5aab8c9cf989a25c779fd70 (patch)
tree9ae35d12fba5766557c1f6c39961809083bcb78d /refs/refs-internal.h
parent8bb0455367a17bd7428e02f835e3f55c8cd168da (diff)
downloadgit-d99aa884dff33d48d5aab8c9cf989a25c779fd70.tar.gz
git-d99aa884dff33d48d5aab8c9cf989a25c779fd70.tar.xz
refs: allow log-only updates
The refs infrastructure learns about log-only ref updates, which only update the reflog. Later, we will use this to separate symbolic reference resolution from ref updating. Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r--refs/refs-internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index 1f94f7a26..85f4650ab 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -43,6 +43,13 @@
*/
/*
+ * Used as a flag in ref_update::flags when we want to log a ref
+ * update but not actually perform it. This is used when a symbolic
+ * ref update is split up.
+ */
+#define REF_LOG_ONLY 0x80
+
+/*
* Return true iff refname is minimally safe. "Safe" here means that
* deleting a loose reference by this name will not do any damage, for
* example by causing a file that is not a reference to be deleted.