From owner-freebsd-git@freebsd.org Thu Nov 19 08:54:00 2020 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7C1FD2EBBEB for ; Thu, 19 Nov 2020 08:54:00 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CcD4S33hfz3v9j; Thu, 19 Nov 2020 08:54:00 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from mail.j.mat.cc (owncloud.cube.mat.cc [IPv6:2a01:678:4:1::228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.mat.cc", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4099F164D; Thu, 19 Nov 2020 08:54:00 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (unknown [IPv6:2a01:678:42:0:2e66:df0e:5de6:b4de]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mat@mat.cc) by mail.j.mat.cc (Postfix) with ESMTPSA id 57E08942D84; Thu, 19 Nov 2020 08:53:57 +0000 (UTC) Date: Thu, 19 Nov 2020 09:52:23 +0100 From: Mathieu Arnold To: Dan Langille Cc: freebsd-git@freebsd.org Subject: Re: Monitoring commits on all branches Message-ID: <20201119085223.nsrp2e45oyepsvds@aching.in.mat.cc> References: <197541CC-FEA7-4B4C-936E-66A5625BB64C@langille.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qoacccmzawas6bhq" Content-Disposition: inline In-Reply-To: <197541CC-FEA7-4B4C-936E-66A5625BB64C@langille.org> X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2020 08:54:00 -0000 --qoacccmzawas6bhq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 18, 2020 at 08:49:46PM -0500, Dan Langille wrote: > How can a repo be monitored for commits on all branches? >=20 > I know how to ask a given branch: do you have any commits after foo_hash? >=20 > How do I: >=20 > * get a list of all commits since foo_hash All commits on the branch foo_hash is: git log $foo_hash...branch_name > * know which branch each of those commits was on (e.g. master, branches/2= 020Q4) 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. You could be tempted to use `--since `, but you cannot, because as git is distributed, commit dates are by no mean increasing as you get to the tip of the branch. For example, I work on something on a private branch, commit it, and open a review, a few days pass, the review gets accepted, and I then rebase my one commit branch on the main branch and git push. The latest commit on that branch will be mine, which has a date a few days in the past, the previous commit probably has a date a few hours ago. --=20 Mathieu Arnold --qoacccmzawas6bhq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAl+2MkJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgIOpA/9F+S267282jm5lt7yS82Ob1NlR/8zR8WoQHxXSrd1eriTU4ie56e23PAC N34Rb6+55A8mldAQvKNLNgzkXb3TqY62JiunXNbk72cz/dqmyMfJBbGAGJKxfbxG +ia1PQB66S9pmlsGH2gZCATAo3sRsHJ548M73HzdYc7/LBj/O4H2L9mQzAMk7LmI SvKGd3ytT+ABEmJEnhWEt5wCVZ8esmFtCeJK3gMXQCBeQsFbN17Yc9P+WqoY6ShC ineiQsjZ5pviIH52hCPqoXyByLXUMHHKqBTWpQHfauVjmsCFwOhM29AHmNcrv87m ocnyTXyVsqIm88iSsutp3+mQphtOOdjGff7KFML9r2eesVTQUANliivIdj/DrNqq S7+ePNMV4WUd4c1zt5E+dSBcaVQuwTlQk5ZBsTEQHW9iGe+l/wMYWSwUHidq0bxC A8zGXouvanpPP31q+bwUmaEGZYJ7w9EjOBCQx8RTlUV2t35Rwjf/5GMAcIO6rjhC bc3yJBOp+rQAw5aGbYFJB8ZORx658AQ0/rCny+cLk7/ibUzYd3zDl/EnoETgSQMp sBfBuNbh1P2W0rgNLCLzEjlCer2VluCx0XcNjeKM/5MedZB0D+TXPySaqSEMBW2v 2A81UAilVeL0V7SfnLZ+L7PU1zR3g7XpIB99ntMy2UYpofki+aw= =3JPV -----END PGP SIGNATURE----- --qoacccmzawas6bhq--