5 ms·
git provides a couple of options for running a script against the code for every commit
by sulZ 5y ago
git provides a couple of options for running a script against the code for every commit
- divbzero 5y agoWould that be git for-each-ref [1] or something different? [1]: https://git-scm.com/docs/git-for-each-ref https://git-scm.com/docs/git-for-each-ref
- remram 5y agoCommits are not refs, only the head of a branch (or tag) is a ref.
- deleted 5y ago[deleted]
- Too 5y agoEven 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.