path: root/log-tree.h
diff options
authorLinus Torvalds <>2008-10-27 19:51:59 (GMT)
committerJunio C Hamano <>2008-11-04 08:08:03 (GMT)
commit0f3a290b89b89bb5375cf5019b067e4a99f02620 (patch)
treef1d7a3f846476cb7e027637e2c0826f525ec7637 /log-tree.h
parent9f8f132621faedd250fded3e260402623da91a6f (diff)
Add a 'source' decorator for commits
We already support decorating commits by tags or branches that point to them, but especially when we are looking at multiple branches together, we sometimes want to see _how_ we reached a particular commit. We can abuse the '->util' field in the commit to keep track of that as we walk the commit lists, and get a reasonably useful view into which branch or tag first reaches that commit. Of course, if the commit is reachable through multiple sources (which is common), our particular choice of "first" reachable is entirely random and depends on the particular path we happened to follow. Signed-off-by: Linus Torvalds <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'log-tree.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/log-tree.h b/log-tree.h
index 3c8127b..f2a9008 100644
--- a/log-tree.h
+++ b/log-tree.h
@@ -12,7 +12,7 @@ int log_tree_diff_flush(struct rev_info *);
int log_tree_commit(struct rev_info *, struct commit *);
int log_tree_opt_parse(struct rev_info *, const char **, int);
void show_log(struct rev_info *opt);
-void show_decorations(struct commit *commit);
+void show_decorations(struct rev_info *opt, struct commit *commit);
void log_write_email_headers(struct rev_info *opt, const char *name,
const char **subject_p,
const char **extra_headers_p,