OSDN Git Service

worktree: honor configuration variables
authorJunio C Hamano <gitster@pobox.com>
Tue, 27 Sep 2016 06:49:39 +0000 (23:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Sep 2016 17:51:33 +0000 (10:51 -0700)
commitd49028e6e7ad02a0fc2622487abc46312d9b42f4
tree8233039eeaea8df5d4a359226e8a7ad96a097eba
parent7c0304af62fcb777faac6eebd8c242d3de4f605d
worktree: honor configuration variables

The command accesses default_abbrev (defined in environment.c and is
updated via core.abbrev configuration), but never makes any call to
git_config().  The output from "worktree list" ignores the abbrev
setting for this reason.

Make a call to git_config() to read the default set of configuration
variables at the beginning of the command.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c