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

[PATCH v4 3/7] pull: add --merge option

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Oct 12, 2013, 07:01 UTC
Message-ID
<1381561322-20059-3-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1381561322-20059-1-git-send-email-felipe.contreras@gmail.com>
Also, deprecate --no-rebase since there's no need for it any more.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 Documentation/git-pull.txt | 8 ++++++--
 git-pull.sh                | 6 +++++-
 2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-pull.txt b/Documentation/git-pull.txt
index 991352f..e09f004 100644
--- a/Documentation/git-pull.txt
+++ b/Documentation/git-pull.txt
@@ -119,8 +119,12 @@ It rewrites history, which does not bode well when you
 published that history already.  Do *not* use this option
 unless you have read linkgit:git-rebase[1] carefully.
 
---no-rebase::
-	Override earlier --rebase.
+-m::
+--merge::
+	Force a merge.
++
+See `pull.mode`, `branch.<name>.pullmode` in linkgit:git-config[1] if you want
+to make `git pull` always use `--merge`.
 
 Options related to fetching
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/git-pull.sh b/git-pull.sh
index f53d193..fbb8a9b 100755
--- a/git-pull.sh
+++ b/git-pull.sh
@@ -127,8 +127,12 @@ do
 	-r|--r|--re|--reb|--reba|--rebas|--rebase)
 		mode=rebase
 		;;
+	-m|--m|--me|--mer|--merg|--merge)
+		mode=merge
+		;;
 	--no-r|--no-re|--no-reb|--no-reba|--no-rebas|--no-rebase)
-		mode=
+		mode=merge
+		echo "--no-rebase is deprecated, please use --merge instead"
 		;;
 	--recurse-submodules)
 		recurse_submodules=--recurse-submodules
-- 
1.8.4-fc
Previous: Felipe ContrerasNext: Felipe Contreras
Message 3 of 8 in “pull: add merge-ff-only option”
  1. 4/7 pull: add merge-ff-only optionFelipe Contreras, Oct 12, 2013
  2. 0/7 Reject non-ff pulls by defaultFelipe Contreras, Oct 12, 2013
  3. 3/7 pull: add --merge optionFelipe Contreras, Oct 12, 2013
  4. 5/7 pull: add warning on non-ff mergesFelipe Contreras, Oct 12, 2013
  5. 6/7 pull: cleanup documentationFelipe Contreras, Oct 12, 2013
  6. 2/7 pull: refactor $rebase variable into $modeFelipe Contreras, Oct 12, 2013
  7. 1/7 pull: rename pull.rename to pull.modeFelipe Contreras, Oct 12, 2013
  8. 7/7 pull: add documentation about non-ff mergesFelipe Contreras, Oct 12, 2013

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.