From: Linus Torvalds <torvalds@linux-foundation.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH 0/2] [GIT PULL] ktest: A couple of fixes
Date: Tue, 1 May 2012 19:58:46 -0700 [thread overview]
Message-ID: <CA+55aFy02d13HkfwY-TEGwu=2cd8en+_rnrnwcwixGKRmdJRtA@mail.gmail.com> (raw)
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 parent reply other threads:[~2012-05-02 3:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20120502004439.965120020@goodmis.org>
2012-05-02 2:58 ` Linus Torvalds [this message]
2012-05-02 3:30 ` [PATCH 0/2] [GIT PULL] ktest: A couple of fixes Stephen Rothwell
2012-05-02 3:49 ` Junio C Hamano
2012-05-02 13:44 ` Steven Rostedt
2012-05-02 20:14 ` Junio C Hamano
2012-05-03 0:07 ` Steven Rostedt
2012-05-03 0:33 ` Jakub Narebski
2012-05-03 1:52 ` Steven Rostedt
2012-05-03 2:06 ` Nguyen Thai Ngoc Duy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+55aFy02d13HkfwY-TEGwu=2cd8en+_rnrnwcwixGKRmdJRtA@mail.gmail.com' \
--to=torvalds@linux-foundation.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).