git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC PATCH 2/2] pull: allow -e as a synonym for --edit

From
Rafael Ascensão <rafa.almas@gmail.com>
Date
Jun 4, 2018, 21:50 UTC
Message-ID
<20180604215023.20525-2-rafa.almas@gmail.com>
In-Reply-To
<20180604215023.20525-1-rafa.almas@gmail.com>

`git pull`'s documentation mentions that `--edit` can be used with short option `-e`. But `git pull` doesn't understand `-e`.

To make things consistent, teach `git pull` `-e` for `--edit`
Signed-off-by: Rafael Ascensão <rafa.almas@gmail.com>
---
 builtin/pull.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/pull.c b/builtin/pull.c
index e32d6cd5b..dd54f2e57 100644
--- a/builtin/pull.c
+++ b/builtin/pull.c
@@ -154,7 +154,7 @@ static struct option pull_options[] = {
 	OPT_PASSTHRU(0, "commit", &opt_commit, NULL,
 		N_("perform a commit if the merge succeeds (default)"),
 		PARSE_OPT_NOARG),
-	OPT_PASSTHRU(0, "edit", &opt_edit, NULL,
+	OPT_PASSTHRU('e', "edit", &opt_edit, NULL,
 		N_("edit message before committing"),
 		PARSE_OPT_NOARG),
 	OPT_PASSTHRU(0, "ff", &opt_ff, NULL,
-- 
2.17.1
Previous: Rafael AscensãoNext: Duy Nguyen
Message 2 of 4 in “docs: reflect supported fetch options of git pull”
  1. 1/2 docs: reflect supported fetch options of git pullRafael Ascensão, Jun 4, 2018
  2. 2/2 pull: allow -e as a synonym for --editRafael Ascensão, Jun 4, 2018
  3. Duy NguyenJun 5, 2018
  4. Rafael AscensãoJun 5, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.