aboutsummaryrefslogtreecommitdiffstats
path: root/pretty.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-04-03 10:56:20 -0700
committerJunio C Hamano <gitster@pobox.com>2024-04-03 10:56:20 -0700
commitd988e80bd3a24387c74810b187a47813f8460699 (patch)
treed4c97adf07eeb4ba4f8dd6551b513e76a0937a03 /pretty.c
parent4cc302e8869d1460012048043922221364160502 (diff)
parentf999d5188b4060aa0f784a6f4cf1574ea352a1e7 (diff)
downloadgit-d988e80bd3a24387c74810b187a47813f8460699.tar.gz
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);