summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-06 10:16:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-06 19:41:21 (GMT)
commit95308d64ce43502507091ae5bbbdc41a918149ce (patch)
treed90428d37a403c48be3c36bd54fe3c1bed4b9a23 /object.h
parent38e79b1fdab9244e1727d0698afcf3bb8956c0a4 (diff)
downloadgit-95308d64ce43502507091ae5bbbdc41a918149ce.zip
git-95308d64ce43502507091ae5bbbdc41a918149ce.tar.gz
git-95308d64ce43502507091ae5bbbdc41a918149ce.tar.bz2
object.h: update flag allocation comment
Since the "flags" is shared, it's a good idea to keep track of who uses what bit. When we need to use more flags in library code, we can be sure it won't be re-used for another purpose by some caller. While at there, fix the location of "5" (should be in a different column than "4" two lines down) 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 'object.h')
-rw-r--r--object.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/object.h b/object.h
index 87563d9..15901d2 100644
--- a/object.h
+++ b/object.h
@@ -29,7 +29,7 @@ struct object_array {
/*
* object flag allocation:
* revision.h: 0---------10 26
- * fetch-pack.c: 0---5
+ * fetch-pack.c: 0----5
* walker.c: 0-2
* upload-pack.c: 4 11----------------19
* builtin/blame.c: 12-13
@@ -40,6 +40,10 @@ struct object_array {
* sha1_name.c: 20
* list-objects-filter.c: 21
* builtin/fsck.c: 0--3
+ * builtin/index-pack.c: 2021
+ * builtin/pack-objects.c: 20
+ * builtin/reflog.c: 10--12
+ * builtin/unpack-objects.c: 2021
*/
#define FLAG_BITS 27