pretty: add pointer and tag options to %(decorate)

Add pointer and tag options to %(decorate) format, to allow to override
the " -> " string used to show where HEAD points and the "tag: " string
used to mark tags.

Document in pretty-formats.txt and test in t4205-log-pretty-formats.sh.

Signed-off-by: Andy Koppe <andy.koppe@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Andy Koppe
2023-08-20 19:50:08 +01:00
committed by Junio C Hamano
parent a58dd835e9
commit f1f8a25856
5 changed files with 31 additions and 5 deletions

View File

@ -17,6 +17,8 @@ struct decoration_options {
char *prefix;
char *suffix;
char *separator;
char *pointer;
char *tag;
};
int parse_decorate_color_config(const char *var, const char *slot_name, const char *value);