]> git.ipfire.org Git - thirdparty/git.git/commit - apply.c
introduce CHECKOUT_INIT
authorRené Scharfe <l.s.r@web.de>
Thu, 22 Sep 2016 16:11:33 +0000 (18:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Sep 2016 20:42:18 +0000 (13:42 -0700)
commit68e3d6292f27f123c072175748183c9cb9bc1c70
tree3a3fcb89a074a31c3f0689c207f3390612b12379
parent6fe1b1407ed91823daa5d487abe457ff37463349
introduce CHECKOUT_INIT

Add a static initializer for struct checkout and use it throughout the
code base.  It's shorter, avoids a memset(3) call and makes sure the
base_dir member is initialized to a valid (empty) string.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
builtin/checkout-index.c
builtin/checkout.c
cache.h
unpack-trees.c