git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] replace --edit: respect core.editor
@ 2016-04-19 14:37 Johannes Schindelin
  2016-04-19 16:22 ` Junio C Hamano
  2016-04-20  6:38 ` [PATCH v2] " Johannes Schindelin
  0 siblings, 2 replies; 10+ messages in thread
From: Johannes Schindelin @ 2016-04-19 14:37 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

We simply need to read the config, is all.

This fixes https://github.com/git-for-windows/git/issues/733

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 builtin/replace.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/builtin/replace.c b/builtin/replace.c
index 748c6ca..02b13f6 100644
--- a/builtin/replace.c
+++ b/builtin/replace.c
@@ -475,6 +475,7 @@ int cmd_replace(int argc, const char **argv, const char *prefix)
 		return replace_object(argv[0], argv[1], force);
 
 	case MODE_EDIT:
+		git_config(git_default_config, NULL);
 		if (argc != 1)
 			usage_msg_opt("-e needs exactly one argument",
 				      git_replace_usage, options);
-- 
2.8.1.206.g8b39b4a

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-04-20 15:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 14:37 [PATCH] replace --edit: respect core.editor Johannes Schindelin
2016-04-19 16:22 ` Junio C Hamano
2016-04-20  3:53   ` Jeff King
2016-04-20  5:51     ` Christian Couder
2016-04-20  6:37       ` Johannes Schindelin
2016-04-20  6:33   ` Johannes Schindelin
2016-04-20 15:26     ` Junio C Hamano
2016-04-20  6:38 ` [PATCH v2] " Johannes Schindelin
2016-04-20  6:53   ` Jeff King
2016-04-20 15:29     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).