diff options
author | René Scharfe <l.s.r@web.de> | 2019-11-12 10:38:11 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-06 21:29:04 (GMT) |
commit | c3794d4ccb70c6b36be3fd4981682f422b04de05 (patch) | |
tree | d9101420ff7e83a13140f21b8d08d5beaa1e752a /templates/info--exclude | |
parent | c593a2634837234c91afc875cb569a53fbaadbfb (diff) | |
download | git-c3794d4ccb70c6b36be3fd4981682f422b04de05.zip git-c3794d4ccb70c6b36be3fd4981682f422b04de05.tar.gz git-c3794d4ccb70c6b36be3fd4981682f422b04de05.tar.bz2 |
name-rev: use strbuf_strip_suffix() in get_rev_name()
get_name_rev() basically open-codes strip_suffix() before adding a
string to a strbuf.
Let's use the strbuf right from the beginning, i.e. add the whole
string to the strbuf and then use strbuf_strip_suffix(), making the
code more idiomatic.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/info--exclude')
0 files changed, 0 insertions, 0 deletions