simonw / git-history

Tools for analyzing Git history using SQLite
Apache License 2.0
191 stars 18 forks source link

`--start-at` and `--start-after` options #26

Closed simonw closed 2 years ago

simonw commented 2 years ago

Found a bad commit which broke the script: https://github.com/simonw/sf-tree-history/commit/3fb63a99dfab8a75c83d341c67afc9abf484e0c4 in https://github.com/simonw/git-history/issues/21#issuecomment-983130553_

Solution: options to say "start at this commit" or "start at the commit AFTER this commit".

simonw commented 2 years ago

The reason I want both is that it's actually not trivial to look up the commit that came directly after a commit in a Git history - so if you find a commit that's broken and think "OK, I want to start at the next one" looking up what that next one is would be non-trivial.

So having both options makes sense to me.

simonw commented 2 years ago

I'm going to add a --skip option too for skipping individual commits.

simonw commented 2 years ago

Documentation: https://github.com/simonw/git-history/blob/29f9f8d7e54b40f083097b9591cd0f7a4fd847fa/README.md#additional-options