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

Re: [PATCH] pull: Allow pull to preserve merges when rebasing.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 8, 2013, 21:57 UTC
Message-ID
<7vd2pn977v.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20130808163539.0b59b20a@sh9>
Stephen Haberman <stephen@exigencecorp.com> writes:
Show 7 quoted lines
> Hi Johannes,
>
>> This should probably be added to config.txt and
>> Documentation/git-pull.txt, too, right?
>
> Yep, I meant to note that I'd do that after getting an initial
> confirmation that the pull.preserve-merges was the preferred approach.

If you were to go that route, no dashes in the last component of configuration variable names, please.

> (I was being lazy and didn't want to write up docs only to switch to
> overloading pull.rebase or what not.)
I think we have a recent update that allows you to say
	[pull]
        	rebase = false

to mean "I want 'git pull' to use merge". Currently the other choice is:

	[pull]
		rebase = true

to say "I want to run 'git pull --rebase'". I do not think it is unreasonable to extend it further so that

	[pull]
		rebase = preserve
is understood.
Previous: Philip OakleyNext: Johannes Schindelin
Message 7 of 9 in “[RFC] allow git pull to preserve merges”
  1. Stephen HabermanAug 8, 2013
  2. pull: Allow pull to preserve merges when rebasing.Stephen Haberman, Aug 8, 2013
  3. Stephen HabermanAug 8, 2013
  4. Johannes SchindelinAug 8, 2013
  5. Stephen HabermanAug 8, 2013
  6. Philip OakleyAug 8, 2013
  7. Junio C HamanoAug 8, 2013
  8. Johannes SchindelinAug 9, 2013
  9. Stephen HabermanAug 9, 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.