summaryrefslogtreecommitdiff
path: root/t/t1514-rev-parse-push.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2016-10-16 12:06:02 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-10-17 14:42:56 -0700
commit0ac52a38e8008fa5bb243e150031681420c639fa (patch)
treee0002e605c44b9316eed9fdbf8074db83700f72e /t/t1514-rev-parse-push.sh
parentavoid pointer arithmetic involving NULL in FLEX_ALLOC_MEM (diff)
downloadtgif-0ac52a38e8008fa5bb243e150031681420c639fa.tar.xz
inline xalloc_flex() into FLEXPTR_ALLOC_MEM
Allocate and copy directly in FLEXPTR_ALLOC_MEM and remove the now unused helper function xalloc_flex(). The resulting code is shorter and the offset arithmetic is a bit simpler. Suggested-by: Jeff King <peff@peff.net> Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1514-rev-parse-push.sh')
0 files changed, 0 insertions, 0 deletions