git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Bertrand Jacquin <beber.mailing@gmail.com>
Cc: git@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>
Subject: Re: git-feed-mail-list.sh
Date: Tue, 09 May 2006 00:32:24 -0700	[thread overview]
Message-ID: <7v7j4v8xh3.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0605081951390.3718@g5.osdl.org> (Linus Torvalds's message of "Mon, 8 May 2006 20:06:35 -0700 (PDT)")

Linus Torvalds <torvalds@osdl.org> writes:

> But if you want to get it for any random merges, you can always just do
>
> 	git log -11 --pretty=oneline ^$commit^ $commit^@ |
> 		sed 's/[0-9a-f]* // ; 11 s/.*/\.\.\./' 
>
> which will show up to the ten first commits that were merged (and turn the 
> eleventh one, if it exists, into "..." - that's a pretty disgusting trick 
> to make it show when you left things out).
>
> That "^$commit^ $commit^@" part is important. It may look like some 
> deranged git smiley, but it does exactly what you want it to do: take all 
> the parents of the commit, but ignore any commit reachable from the first 
> one (the "mainline" of the person who did the commit).
>
> The ^@ syntax is obviously pretty new, so it requires a modern git.

It is indeed very quite new.  Merged into "master" branch at the
beginning of this month.

I often wish we had a straightforward way to tell when a given
feature went into the mainline, not just appeared on a topic
branch.  In this case, I said:

	$ git whatchanged -p -S'"^@"' master -- revision.c

to find ea4a19 commit (Apr 30 00:54:29 2006 -0700).  But that
was when the feature was first made on one of my topic branches,
which is not what I was looking for.

By looking at gitk, I can then tell 83262e (May 1 01:54:27)
merged it to "next", and 746437 (May 1 22:55:40) merged it to
"master".

In general this is an unsolvable question, because I can have a
topic branch forked off of the tip of "master", cook it for a
few days without advancing "master" at all, and merge it to
"master" after that.  But such a merge will be a fast-forward.

  reply	other threads:[~2006-05-09  7:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-03 17:48 git-feed-mail-list.sh David Woodhouse
2006-05-04  4:35 ` git-feed-mail-list.sh Junio C Hamano
2006-05-04  5:16   ` git-feed-mail-list.sh Junio C Hamano
2006-05-08 23:44   ` git-feed-mail-list.sh David Woodhouse
2006-05-09  0:19     ` git-feed-mail-list.sh Linus Torvalds
2006-05-09  0:28       ` git-feed-mail-list.sh David Woodhouse
2006-05-09  0:36         ` git-feed-mail-list.sh Junio C Hamano
2006-05-09  0:53           ` git-feed-mail-list.sh Bertrand Jacquin
2006-05-09  0:57             ` git-feed-mail-list.sh Junio C Hamano
2006-05-09  0:59               ` git-feed-mail-list.sh Bertrand Jacquin
2006-05-09  0:45         ` git-feed-mail-list.sh Linus Torvalds
2006-05-09  1:01           ` git-feed-mail-list.sh David Woodhouse
2006-05-09  1:05             ` git-feed-mail-list.sh Junio C Hamano
2006-05-09  1:12               ` git-feed-mail-list.sh David Woodhouse
2006-05-10  8:49                 ` git-feed-mail-list.sh Martin Mares
2006-05-09  1:27             ` git-feed-mail-list.sh Linus Torvalds
2006-05-09  0:55       ` git-feed-mail-list.sh Bertrand Jacquin
2006-05-09  1:03         ` git-feed-mail-list.sh Junio C Hamano
2006-05-09  1:09           ` git-feed-mail-list.sh Bertrand Jacquin
2006-05-09  2:41             ` git-feed-mail-list.sh Junio C Hamano
2006-05-09  3:06               ` git-feed-mail-list.sh Linus Torvalds
2006-05-09  7:32                 ` Junio C Hamano [this message]
2006-05-09  1:18         ` git-feed-mail-list.sh Linus Torvalds
2006-05-09  7:15           ` git-feed-mail-list.sh Junio C Hamano

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=7v7j4v8xh3.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=beber.mailing@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=torvalds@osdl.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).