diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-04-19 09:08:43 +1000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-18 16:28:27 -0700 |
commit | 9d3f002f21f78576f3c31ae94ce78de54e305c95 (patch) | |
tree | 8523cf6f3c1caf0167b6518b1c48072c6157e39c /log-tree.h | |
parent | d2ea4afb03d0f44284b73bbca7fd4d98168b0230 (diff) | |
download | git-9d3f002f21f78576f3c31ae94ce78de54e305c95.tar.gz git-9d3f002f21f78576f3c31ae94ce78de54e305c95.tar.xz |
pretty: share code between format_decoration and show_decorations
This also adds color support to format_decorations()
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 'log-tree.h')
-rw-r--r-- | log-tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/log-tree.h b/log-tree.h index 9140f4821..d6ecd4dc4 100644 --- a/log-tree.h +++ b/log-tree.h @@ -13,6 +13,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 format_decorations(struct strbuf *sb, const struct commit *commit, int use_color); void show_decorations(struct rev_info *opt, struct commit *commit); void log_write_email_headers(struct rev_info *opt, struct commit *commit, const char **subject_p, |