Monitoring commits on all branches

Dan Langille dan at langille.org
Thu Nov 19 17:45:16 UTC 2020


> On Nov 19, 2020, at 3:52 AM, Mathieu Arnold <mat at FreeBSD.org> wrote:
> 
> On Wed, Nov 18, 2020 at 08:49:46PM -0500, Dan Langille wrote:
>> How can a repo be monitored for commits on all branches?
>> 
>> I know how to ask a given branch: do you have any commits after foo_hash?
>> 
>> How do I:
>> 
>> * get a list of all commits since foo_hash
> 
> All commits on the branch foo_hash is:
> 
> git log $foo_hash...branch_name

So, branch_name, not HEAD as others have mentioned?

e.g. : git log $foo_hash..HEAD

> 
>> * know which branch each of those commits was on (e.g. master, branches/2020Q4)
> 
> You will need to keep track of the latest commit on each branch
> separately, because there is absolutely no relation or ordering
> possible between branches.

Yes, I agree. FreshPorts is keeping track of the last commit on each branch.

Thank you.


More information about the freebsd-git mailing list