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

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Koppe <andy.koppe@gmail.com>2023-08-20 21:50:08 +0300
committerJunio C Hamano <gitster@pobox.com>2023-08-21 21:40:10 +0300
commitf1f8a258567268974b9bbd012c33ad219a31aa0e (patch)
treebcd9ee55e4bb42eff9a588313bef32193d15cf5e /log-tree.h
parenta58dd835e9536cf9e7adcd404d008a44d29af804 (diff)
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>
Diffstat (limited to 'log-tree.h')
-rw-r--r--log-tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/log-tree.h b/log-tree.h
index 14898de8ac..41c776fea5 100644
--- a/log-tree.h
+++ b/log-tree.h
@@ -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);