News for hackers. Stuff that matters.
Re:Git as a Storage by sulZ on Friday October 08, 2021 @05:58PM (#28804606)
git provides a couple of options for running a script against the code for every commit
Re:Git as a Storage by Too on Sunday October 10, 2021 @03:05AM (#28816410)
Even without built in options, writing a for-loop over the result of git log or rev-list is more or less two lines of scripting. Same with a walk over rev-parse HEAD^.

Then you also have git bisect but that's more for finding when some metric started to show anomalies.

Re:Git as a Storage by divbzero on Friday October 08, 2021 @08:09PM (#28805679)
Would that be git for-each-ref [1] or something different?

[1]: https://git-scm.com/docs/git-for-each-ref

Re:Git as a Storage by remram on Friday October 08, 2021 @10:00PM (#28806336)
Commits are not refs, only the head of a branch (or tag) is a ref.