Re: listing changesets on a branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tajti Ákos <akos.tajti@xxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]