diff options
author | René Scharfe <l.s.r@web.de> | 2023-07-16 10:52:33 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-07-17 09:24:49 -0700 |
commit | 945c72250afcf50a0f5394151b76d5da28fa6f94 (patch) | |
tree | c786b61430c16339fd61ba978124ac94df7ff28e /commit.c | |
parent | da269af9207e38e820daad8aa993caa7d2fad76c (diff) |
strbuf: use skip_prefix() in strbuf_addftime()
Use the now common skip_prefix() cascade instead of a case statement to
parse the strftime(3) format in strbuf_addftime(). skip_prefix() parses
the "fmt" pointer and advances it appropriately, making additional
pointer arithmetic unnecessary. The resulting code is more compact and
consistent with most other strbuf_expand_step() loops.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions