summaryrefslogtreecommitdiff
path: root/pretty.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-03-22 21:00:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-22 21:00:24 (GMT)
commit25f9326561292b45311c60879d9bc08618727973 (patch)
treed6ea2102ed47d0464154fa78c523a303c3fb3cef /pretty.h
parentf5c73f69fd711f4814a2e8da78a0a2f4dbb46013 (diff)
parent96099726ddb00b45135964220ce56468ba9fe184 (diff)
downloadgit-25f9326561292b45311c60879d9bc08618727973.zip
git-25f9326561292b45311c60879d9bc08618727973.tar.gz
git-25f9326561292b45311c60879d9bc08618727973.tar.bz2
Merge branch 'rs/pretty-describe'
"git log --format='...'" learned "%(describe)" placeholder. * rs/pretty-describe: archive: expand only a single %(describe) per archive pretty: document multiple %(describe) being inconsistent t4205: assert %(describe) test coverage pretty: add merge and exclude options to %(describe) pretty: add %(describe)
Diffstat (limited to 'pretty.h')
-rw-r--r--pretty.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pretty.h b/pretty.h
index d902cdd..f034609 100644
--- a/pretty.h
+++ b/pretty.h
@@ -24,6 +24,10 @@ enum cmit_fmt {
CMIT_FMT_UNSPECIFIED
};
+struct pretty_print_describe_status {
+ unsigned int max_invocations;
+};
+
struct pretty_print_context {
/*
* Callers should tweak these to change the behavior of pp_* functions.
@@ -45,6 +49,7 @@ struct pretty_print_context {
int color;
struct ident_split *from_ident;
unsigned encode_email_headers:1;
+ struct pretty_print_describe_status *describe_status;
/*
* Fields below here are manipulated internally by pp_* functions and