diff options
author | Jeff King <peff@peff.net> | 2016-10-20 02:19:19 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-26 13:30:51 -0700 |
commit | ef2ed5013c4160284d9de18903bd4f7d0542d810 (patch) | |
tree | 6c11907a3c953aa672bfe70534fec122c22e4744 /Documentation/git-mv.txt | |
parent | test-*-cache-tree: setup git dir (diff) | |
download | tgif-ef2ed5013c4160284d9de18903bd4f7d0542d810.tar.xz |
find_unique_abbrev: use 4-buffer ring
Some code paths want to format multiple abbreviated sha1s in
the same output line. Because we use a single static buffer
for our return value, they have to either break their output
into several calls or allocate their own arrays and use
find_unique_abbrev_r().
Intead, let's mimic sha1_to_hex() and use a ring of several
buffers, so that the return value stays valid through
multiple calls. This shortens some of the callers, and makes
it harder to for them to make a silly mistake.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-mv.txt')
0 files changed, 0 insertions, 0 deletions