summaryrefslogtreecommitdiffstats
path: root/pretty.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-04-03 19:56:20 +0200
committerJunio C Hamano <gitster@pobox.com>2024-04-03 19:56:20 +0200
commitd988e80bd3a24387c74810b187a47813f8460699 (patch)
treed4c97adf07eeb4ba4f8dd6551b513e76a0937a03 /pretty.c
parentMerge branch 'rs/strbuf-expand-bad-format' (diff)
parentpretty: find pretty formats case-insensitively (diff)
downloadgit-d988e80bd3a24387c74810b187a47813f8460699.tar.xz
git-d988e80bd3a24387c74810b187a47813f8460699.zip
Merge branch 'bl/pretty-shorthand-config-fix'
The "--pretty=<shortHand>" option of the commands in the "git log" family, defined as "[pretty] shortHand = <expansion>" should have been looked up case insensitively, but was not, which has been corrected. * bl/pretty-shorthand-config-fix: pretty: find pretty formats case-insensitively pretty: update tests to use `test_config`
Diffstat (limited to 'pretty.c')
-rw-r--r--pretty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretty.c b/pretty.c
index eecbce82cf..2faf651d3e 100644
--- a/pretty.c
+++ b/pretty.c
@@ -147,7 +147,7 @@ static struct cmt_fmt_map *find_commit_format_recursive(const char *sought,
for (i = 0; i < commit_formats_len; i++) {
size_t match_len;
- if (!starts_with(commit_formats[i].name, sought))
+ if (!istarts_with(commit_formats[i].name, sought))
continue;
match_len = strlen(commit_formats[i].name);