Is there a command that allows me to check a commit based on its distance from the current commit instead of using commit identifiers?
Usage example
Basically, I am thinking of setting up the cron script job type to do the following on the build server:
- Pull out the last of the git branches (git pull dev).
- Build it, run the tests.
- If the percentage of skips is lower than the last saved percentage:
- Recursively commit, build, and run tests until you find a commit where the percentage has changed.
- Record commits by entering regressions.
I have a general idea of how this will depend together, but this will not work if I cannot periodically return a single commit.
If there is no specific command, I suggest that I could grep the commit log and take the first one each time?
I appreciate any ideas or help!
Unlike: How to undo the last commit in Git?
I want to return "N" the number of commits.
chrispepper1989
source share