summaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-03-25 13:23:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-03-25 22:09:24 (GMT)
commit208acbfb82f722fb22320c381e7da8c8fb2e37e8 (patch)
tree9a40378327e8ce6a303478547aa51fa35edac7ae /sha1_name.c
parent79fcbf7e703ca5805ebd46b2c7e09d0703f1c1ff (diff)
downloadgit-208acbfb82f722fb22320c381e7da8c8fb2e37e8.zip
git-208acbfb82f722fb22320c381e7da8c8fb2e37e8.tar.gz
git-208acbfb82f722fb22320c381e7da8c8fb2e37e8.tar.bz2
object.h: centralize object flag allocation
While the field "flags" is mainly used by the revision walker, it is also used in many other places. Centralize the whole flag allocation to one place for a better overview (and easier to move flags if we have too). Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
-rw-r--r--sha1_name.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sha1_name.c b/sha1_name.c
index a5578f7..23bb821 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -819,6 +819,8 @@ static int get_sha1_1(const char *name, int len, unsigned char *sha1, unsigned l
* For future extension, ':/!' is reserved. If you want to match a message
* beginning with a '!', you have to repeat the exclamation mark.
*/
+
+/* Remember to update object flag allocation in object.h */
#define ONELINE_SEEN (1u<<20)
static int handle_one_ref(const char *path,