Monitoring commits on all branches

Warner Losh imp at bsdimp.com
Thu Nov 19 02:18:23 UTC 2020


On Wed, Nov 18, 2020, 6:49 PM Dan Langille <dan at langille.org> 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
>

git log $hash..HEAD

will list all the commits on the branch. Between branches 'since' has
little to no meaning.

* know which branch each of those commits was on (e.g. master,
> branches/2020Q4)
>

You need to know which branches are interesting.

There are some git log options... --date-order might help since dates are
weird in git...

All of this is a consequence of git being distributed.

Warner

Thanks.
>
> --
> Dan Langille - BSDCan / PGCon
> dan at langille.org
>
>
> _______________________________________________
> freebsd-git at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-git
> To unsubscribe, send any mail to "freebsd-git-unsubscribe at freebsd.org"
>


More information about the freebsd-git mailing list