summaryrefslogtreecommitdiff
path: root/archive-tar.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2012-05-18 07:15:17 +0200
committerJunio C Hamano <gitster@pobox.com>2012-05-18 11:26:10 -0700
commitc51a351a6bcc64ad8cb2ed5a6ebde54b8d50eef1 (patch)
tree2dba4441dbdf527c5a37c8c071c63a1f349f1ff5 /archive-tar.c
parentd0f1ea6003d97e63110fa7d50bb07f546a909b6e (diff)
downloadgit-c51a351a6bcc64ad8cb2ed5a6ebde54b8d50eef1.tar.gz
archive: simplify refname handling
There is no need to build a copy of the relevant part of the string just to make sure we have a NUL-terminated string. We can simply pass the length of the interesting part to dwim_ref() instead. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive-tar.c')
0 files changed, 0 insertions, 0 deletions