Mastodon Feed: Post

Mastodon Feed

Boosted by glyph ("Glyph"):
SnoopJ@hachyderm.io ("SnoopJ 🔜 #PyConUS") wrote:

TIL that `git` commands which allow you to apply `-` will ALWAYS do this filtering before `--reverse` or other ordering adjustements

so in order to query the commit details for "oldest known commit that touched this file" you have to do some harebrained thing like:

`git log -1 $(git rev-list --reverse HEAD -- some/file | head -1)`