diff options
author | René Scharfe <l.s.r@web.de> | 2023-07-07 21:08:33 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-07-07 15:32:57 -0700 |
commit | bd19ee9c459b2d7872a8e486fd9c2f1b17d662a5 (patch) | |
tree | e665ab970390a9df0dbfb219e434e5ba079f7a12 /diff.c | |
parent | 4416b86c6b34dad64b556bb1eb6711d5e6595a48 (diff) |
pretty: use strchr(3) in userformat_find_requirements()
The strbuf_expand_step() loop in userformat_find_requirements() iterates
through the percent signs in the string "fmt", but we're not interested
in its effect on the strbuf "dummy". Use strchr(3) instead and get rid
of the strbuf that we no longer need.
Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions