From e97a5e765db06995c3b027a5d7dceb6b4f2cba02 Mon Sep 17 00:00:00 2001 From: Remi Lespinet Date: Tue, 4 Aug 2015 22:19:26 +0800 Subject: git-am: add am.threeWay config variable Add the am.threeWay configuration variable to use the -3 or --3way option of git am by default. When am.threeway is set and not desired for a specific git am command, the --no-3way option can be used to override it. Signed-off-by: Remi Lespinet Signed-off-by: Paul Tan Signed-off-by: Junio C Hamano --- builtin/am.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'builtin/am.c') diff --git a/builtin/am.c b/builtin/am.c index 84d57d4297..1399c8dd88 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -152,6 +152,8 @@ static void am_state_init(struct am_state *state, const char *dir) state->prec = 4; + git_config_get_bool("am.threeway", &state->threeway); + state->utf8 = 1; git_config_get_bool("am.messageid", &state->message_id); -- cgit v1.2.1