git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Zbigniew Jędrzejewski-Szmek" <zbyszek@in.waw.pl>
Cc: "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: displaying subtree merges
Date: Wed, 04 Apr 2012 14:09:17 -0700	[thread overview]
Message-ID: <7vehs38arm.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <4F7C787A.6050905@in.waw.pl> ("Zbigniew Jędrzejewski-Szmek"'s message of "Wed, 04 Apr 2012 18:36:10 +0200")

Zbigniew Jędrzejewski-Szmek  <zbyszek@in.waw.pl> writes:

> what is the best way to display merge commits of two branches with
> separate roots?
> ...
> % git log --oneline --follow -- src/udevd.c
> 4309599 warn about deprecated RUN+="socket:" use
> e64fae5 udevd: kill hanging event processes after 30 seconds
> 912541b tabs are as useful as a hole in the head
> ad29a9f merge udev/, libudev/, systemd/ files in src/; move extras/ to src/
> ...
>
> [src/udev/src/udevd.c is the original path]

I am absolutely sure I wrote on how to look at gitk and gitweb part of the
history on this list in the past few months, but my archive digging skill
seems to be failing me today X-<.

I'd do something like this

	(
		echo ^v1.7.9
		git rev-list --first-parent --parents \
                	v1.7.9..master -- gitk-git |
	        sed -e 's/.* //'
	) | xargs git log

when I want to see a more detailed history than

	git log v1.7.9..master -- gitk-git

would give me.  The inner rev-list grabs the tips of the gitk history as
of each merge points between v1.7.9..master, and the first echo ^v1.7.9
excludes the part of gitk history that were already in v1.7.9.

> Is there a way to follow the history also in the subtree?

In any case, from the point of view of the history that is merged into the
other history as its subpart, each and every merge looks like a humongous
rename with bunch of new additions.  It is a known limitation of the
"subtree" merge, which was an ugly hack I invented before submodules have
become ready.  It does not help that the "--follow" is merely a checkbox
hack and does not keep track of different set of paths for each individual
traversal point is digging the history for; improving "--follow" to do so
will make it more useful but nobody has bothered.

  reply	other threads:[~2012-04-04 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-04 16:36 displaying subtree merges Zbigniew Jędrzejewski-Szmek
2012-04-04 21:09 ` Junio C Hamano [this message]
2012-04-04 21:27   ` 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=7vehs38arm.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=zbyszek@in.waw.pl \
    /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).