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

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-05-19 08:28:28 +0300
committerJunio C Hamano <gitster@pobox.com>2018-05-21 08:07:20 +0300
commit44cecbf8a02921a60eb6f7461f6877329edc8a0d (patch)
tree698f2a8e35091b64a9b626836f10c546bd1c1a56 /builtin/show-branch.c
parent60855a5343d4fb7b232ee7ed1e0aee18f312b9ec (diff)
show-branch: note about its object flags usage
This is another candidate for commit-slab. Keep Junio's observation in code so we can search it later on when somebody wants to improve the code. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/show-branch.c')
-rw-r--r--builtin/show-branch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/show-branch.c b/builtin/show-branch.c
index 29d15d16d25..f2e985c00ab 100644
--- a/builtin/show-branch.c
+++ b/builtin/show-branch.c
@@ -22,6 +22,11 @@ static int showbranch_use_color = -1;
static struct argv_array default_args = ARGV_ARRAY_INIT;
+/*
+ * TODO: convert this use of commit->object.flags to commit-slab
+ * instead to store a pointer to ref name directly. Then use the same
+ * UNINTERESTING definition from revision.h here.
+ */
#define UNINTERESTING 01
#define REV_SHIFT 2