diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-04-03 19:56:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-04-03 19:56:20 +0200 |
commit | d988e80bd3a24387c74810b187a47813f8460699 (patch) | |
tree | d4c97adf07eeb4ba4f8dd6551b513e76a0937a03 /pretty.c | |
parent | Merge branch 'rs/strbuf-expand-bad-format' (diff) | |
parent | pretty: find pretty formats case-insensitively (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |