]> git.ipfire.org Git - thirdparty/git.git/commit
refspec: add and use refspec_appendf()
authorRené Scharfe <l.s.r@web.de>
Sat, 5 Sep 2020 14:49:30 +0000 (16:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 Sep 2020 20:15:46 +0000 (13:15 -0700)
commit1af8b8c0a570ee0b12a19fdd920a3ea09fb22a75
treecd2da63870b04868b3da654be43241f2b5ce7f48
parent30035d9c66bc2a52352e3ad42b56047f06c20326
refspec: add and use refspec_appendf()

Add a function for building a refspec using printf-style formatting.  It
frees callers from managing their own buffer.  Use it throughout the
tree to shorten and simplify its callers.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
builtin/fetch.c
builtin/push.c
refspec.c
refspec.h
remote.c