Thread (15 messages) flat view 15 messages, 3 authors, 2016-06-15

Re: [PATCH] config: Add new option to open an editor.

From: Jeff King <hidden>
Date: 2016-06-15 22:46:05

On Wed, Feb 04, 2009 at 12:40:26AM +0200, Felipe Contreras wrote:
+		} else if (!strcmp(argv[1], "--edit") || !strcmp(argv[1], "-e")) {
+			char *config_filename;
+			if (config_exclusive_filename)
+				config_filename = xstrdup(config_exclusive_filename);
+			else
+				config_filename = git_pathdup("config");
+			launch_editor(config_filename, NULL, NULL);
+			free(config_filename);
+			return 0;
 		} else
With this patch, won't I get different behavior from:

  git config -e --global

versus

  git config --global -e

?

Other than that, I like the concept of this patch.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help