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

Re: [1.8.0] fix branch.autosetupmerge and branch.autosetuprebase

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 28, 2011, 23:43 UTC
Message-ID
<AANLkTi=nhc=a6wW9BPiDy_2rbZQCVmhZ75u7MuF33w06@mail.gmail.com>
In-Reply-To
<A8063D85-43A0-474A-8467-DE8473F52ECB@spy.net>
On Mon, Feb 28, 2011 at 6:03 PM, Dustin Sallings <dustin@spy.net> wrote:
Show 10 quoted lines
>
> On Feb 28, 2011, at 14:37, Jay Soffian wrote:
>
> 2. Deprecate branch.autosetuprebase. Pull's default action shouldn't
> be specified when the branch is created. Rather, add a "pull.rebase"
> boolean defaulting to false, and which is overridden per-branch by
> branch.<name>.rebase.
>
> Do you mean to say ``pull.rebase'' configured to true would do the same
> thing?

Effectively, yes. If a user specifies "pull.rebase true" in their .gitconfig or repo .git/config, then when they "git pull" while on branch <name>, pull will rebase, unless branch.<name>.rebase exists and is set to false.

any branches that don't have an explicit "branch.<name>.rebase = false" will
> If so, I'm fine with killing off branch.autosetuprebase.  The goal is to
> have something I can easily give to other people so that we all work the
> same way.

Understood. I recently have the same goal, but my users have pre-existing branches that they setup before I told them to "git config branch.autosetuprebase true". Now they need to go configure every one of those branches to rebase by default.

It would be nice if I could just tell them "git config --global pull.rebase true" and have it affect all their repos and branches. :-)

j.
Previous: Jay Soffian
Message 5 of 5 in “[1.8.0] fix branch.autosetupmerge and branch.autosetuprebase”
  1. Jay SoffianFeb 28, 2011
  2. Miles BaderMar 1, 2011
  3. Stefan HallerMar 2, 2011
  4. Jay SoffianMar 2, 2011
  5. Jay SoffianFeb 28, 2011

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.