git log is today's saviour. While working on some changes to tests, ended up dropping an entire case replacing it with other flows. Of course, it had to be the one touching the core of changes - if not, where's fun in things?
git log -c
came in super handy since I remembered what the flow was thanks to some muscle memory of rewriting the flow over the last few days.
git log -c -S'missingtext' /path/to/file
- gives the context of the commit where the specified text was deleted in the file being searched in.
One less moment to pull my hairs apart on days where there's no shortage.