summaryrefslogtreecommitdiff
path: root/builtin/tag.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2014-09-02 21:10:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-03 17:04:19 (GMT)
commitab5ac95725f7a4f36f72be48f340a84e46996e90 (patch)
treea3496136ea02fecc20b771a7128dfb8845861ee8 /builtin/tag.c
parent7521cc4611a783f4a8174bd0fcec5f4a47357ac1 (diff)
downloadgit-ab5ac95725f7a4f36f72be48f340a84e46996e90.zip
git-ab5ac95725f7a4f36f72be48f340a84e46996e90.tar.gz
git-ab5ac95725f7a4f36f72be48f340a84e46996e90.tar.bz2
update-ref --stdin: narrow scope of err strbuf
Making the strbuf local in each function that needs to print errors saves the reader from having to think about action at a distance, such as * errors piling up and being concatenated with no newline between them * errors unhandled in one function, to be later handled in another * concurrency issues, if this code starts using threads some day No functional change intended. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/tag.c')
0 files changed, 0 insertions, 0 deletions