{"thread":{"id":"44170","subject":"[PATCH] worktree: honor configuration variables","startedAt":"2016-09-27T06:49:47Z","lastAt":"2016-09-27T06:49:47Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"302682","messageId":"xmqqzimtrg58.fsf@gitster.mtv.corp.google.com","threadId":"44170","inReplyTo":null,"subject":"[PATCH] worktree: honor configuration variables","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-09-27T06:49:39Z","receivedAt":"2016-09-27T06:49:47Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"The command accesses default_abbrev (defined in environment.c and is\nupdated via core.abbrev configuration), but never makes any call to\ngit_config().  The output from \"worktree list\" ignores the abbrev\nsetting for this reason.\n\nMake a call to git_config() to read the default set of configuration\nvariables at the beginning of the command.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n---\n builtin/worktree.c | 2 ++\n 1 file changed, 2 insertions(+)\n\ndiff --git a/builtin/worktree.c b/builtin/worktree.c\nindex 6dcf7bd..5c4854d 100644\n--- a/builtin/worktree.c\n+++ b/builtin/worktree.c\n@@ -528,6 +528,8 @@ int cmd_worktree(int ac, const char **av, const char *prefix)\n \t\tOPT_END()\n \t};\n \n+\tgit_config(git_default_config, NULL);\n+\n \tif (ac < 2)\n \t\tusage_with_options(worktree_usage, options);\n \tif (!prefix)\n-- \n2.10.0-561-g98a6b79\n\n"}]}