* listing changesets on a branch
@ 2011-07-26 10:27 Tajti Ákos
2011-07-26 11:46 ` Jakub Narebski
0 siblings, 1 reply; 2+ messages in thread
From: Tajti Ákos @ 2011-07-26 10:27 UTC (permalink / raw)
To: git
Dear List,
I'd like to list the changesets between two commit ids, but only those,
that were committed on a specific branch. I tried to use the following
command:
git log --branches=*/master rev1..rev2
But the result is not what I expected: i see sommits that were made on
an other branch and were not merged to master. Could you please tell me
what I am doing wrong?
Thanks in advance,
Ákos Tajti
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: listing changesets on a branch
2011-07-26 10:27 listing changesets on a branch Tajti Ákos
@ 2011-07-26 11:46 ` Jakub Narebski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Narebski @ 2011-07-26 11:46 UTC (permalink / raw)
To: Tajti Ákos; +Cc: git
Tajti Ákos <akos.tajti@intland.com> writes:
> I'd like to list the changesets between two commit ids, but only
> those, that were committed on a specific branch. I tried to use the
> following command:
>
> git log --branches=*/master rev1..rev2
>
> But the result is not what I expected: i see sommits that were made on
> an other branch and were not merged to master. Could you please tell
> me what I am doing wrong?
In Git there isn't such thing like "commits made on a specific branch".
Branches are simply references to DAG, and "on branch" means commits
reachable from branch tip (branch head).
Anyway, try `--ancestry-path` option (in git-log(1) manpage), which
make Git show only those commits that are on line joining rev2 to
rev1. I guess it is what you really want.
HTH
--
Jakub Narębski
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-26 11:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 10:27 listing changesets on a branch Tajti Ákos
2011-07-26 11:46 ` Jakub Narebski
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).