From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Charles Bailey <charles@hashpling.org>,
git@vger.kernel.org, Kjetil Barvik <barvik@broadpark.no>
Subject: Re: Bug(let): status reports 'can fast-forward' when not true
Date: Tue, 21 Apr 2009 16:28:26 -0700 [thread overview]
Message-ID: <7veivl60yt.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20090421210233.GB13151@coredump.intra.peff.net> (Jeff King's message of "Tue, 21 Apr 2009 17:02:33 -0400")
Jeff King <peff@peff.net> writes:
> [cc'ing Kjetil, as this is a fallout of 19de5d6]
>
> On Tue, Apr 21, 2009 at 09:53:52PM +0100, Charles Bailey wrote:
>
>> I was not really thinking when I get fetched, and ran git status on my
>> pu branch. I was told that pu was behind origin/pu by 104 commits and
>> could be fast-forwarded, so I git merged origin/pu and was mildly
>> surprised when git merge made a commit for me.
>>
>> A quick investigation revealed that pu had (of course) been rewound,
>> but the only commits that it had that the new pu didn't, were merge
>> commits.
>
> I think this is an unintended consequence of 19de5d6
> (stat_tracking_info(): only count real commits, 2009-03-04). It is
> perhaps more useful when seeing the actual numbers to see only the count
> of real commits, but it makes statements like "can be fast-forwarded" no
> longer true.
>
> So I think we need to either:
>
> 1. reword the "can be fast-forwarded" text to something else
>
> 2. revert 19de5d6, since merge commits _can_ be interesting
>
> 3. refactor stat_tracking_info to return "real" and "merge" counts,
> and change the text for the case of "real == 0 && merge > 0".
>
> -Peff
Let's revert it for now and then try #3 after 1.6.3 final.
next prev parent reply other threads:[~2009-04-21 23:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-21 20:53 Bug(let): status reports 'can fast-forward' when not true Charles Bailey
2009-04-21 21:02 ` Jeff King
2009-04-21 23:28 ` Junio C Hamano [this message]
2009-04-22 8:07 ` Kjetil Barvik
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=7veivl60yt.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=barvik@broadpark.no \
--cc=charles@hashpling.org \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/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).