summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-03-28 21:20:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2024-03-28 21:20:12 (GMT)
commite2749914ab8a46d353bf5ef0c66471a7bf16f48a (patch)
tree497eeb89dbb1b6124b0171260f07d9e9fd3aabc0 /pretty.c
parent83eaadc2b6f086b245726d147f22a8222eb59ae1 (diff)
parentf999d5188b4060aa0f784a6f4cf1574ea352a1e7 (diff)
downloadgit-e2749914ab8a46d353bf5ef0c66471a7bf16f48a.zip
git-e2749914ab8a46d353bf5ef0c66471a7bf16f48a.tar.gz
git-e2749914ab8a46d353bf5ef0c66471a7bf16f48a.tar.bz2
Merge branch 'bl/pretty-shorthand-config-fix' into next
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 eecbce8..2faf651 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);