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

Re: [PATCH 0/2] [GIT PULL] ktest: A couple of fixes

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
May 2, 2012, 02:58 UTC
Message-ID
<CA+55aFy02d13HkfwY-TEGwu=2cd8en+_rnrnwcwixGKRmdJRtA@mail.gmail.com>
In-Reply-To
<20120502004439.965120020@goodmis.org>
On Tue, May 1, 2012 at 5:44 PM, Steven Rostedt <rostedt@goodmis.org> wrote:
>
> Is git set up to not fast forward by default? (I need to give it another try)

Git will fast-forward by default if you do a pull and there is no development of your own in your tree.

There are two exceptions:
 - you explicitly say that you don't want to fast-forward (--no-ff or
"[merge] ff=false" in the git config file)
 - if you pull a signed tag with a modern version of git.
That second case may be what you hit.
If you do a
  git pull linus v3.4-rc5

in order to just update to the state of my latest tag, then git will assume you want to do a new commit (and thus a non-fast-forward) just so that git can record the tag signature in the commit.

The sad part is that I don't think you can even override the second case. IOW, I think even "git pull --ff linus v3.4-rc5" will still do a non-fast-forward merge.

That's inconvenient, and an unintended consequence of the behavior I wanted as a top-level maintainer. But I really do think it's wrong for normal developers who might validly just want to update to some particular tagged release.

Junio? Any ideas?
                           Linus
Next: Stephen Rothwell
Message 1 of 9 in “Re: [PATCH 0/2] [GIT PULL] ktest: A couple of fixes”
  1. Linus TorvaldsMay 2, 2012
  2. Stephen RothwellMay 2, 2012
  3. Junio C HamanoMay 2, 2012
  4. Steven RostedtMay 2, 2012
  5. Junio C HamanoMay 2, 2012
  6. Steven RostedtMay 3, 2012
  7. Jakub NarebskiMay 3, 2012
  8. Steven RostedtMay 3, 2012
  9. Nguyen Thai Ngoc DuyMay 3, 2012

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.