Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-10-22 03:04:36 +0400
committerJunio C Hamano <gitster@pobox.com>2011-10-22 03:04:36 +0400
commit0445ba2457b066a70334877f2d638e1f7a974220 (patch)
tree15c01cdcf04d8a5620ed64f37008bef9a127957c /refs.h
parent2f18b4642d6ea052cb6ad85f3a013a33b6afbe92 (diff)
parent55956350024f0706294001cb50d513cf0fa038a1 (diff)
Merge branch 'jc/broken-ref-dwim-fix'
* jc/broken-ref-dwim-fix: resolve_ref(): report breakage to the caller without warning resolve_ref(): expose REF_ISBROKEN flag refs.c: move dwim_ref()/dwim_log() from sha1_name.c
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/refs.h b/refs.h
index f439c54eb2..3fd55369f9 100644
--- a/refs.h
+++ b/refs.h
@@ -10,8 +10,9 @@ struct ref_lock {
int force_write;
};
-#define REF_ISSYMREF 01
-#define REF_ISPACKED 02
+#define REF_ISSYMREF 0x01
+#define REF_ISPACKED 0x02
+#define REF_ISBROKEN 0x04
/*
* Calls the specified function for each ref file until it returns nonzero,