I want to use bisect for the first commit that introduced some line. Using git log -S
wasn’t successful, so I suspect the issue be introduced in a merge commit.
I could do git bisect run ag my-search-phrase
if I were looking for the first commit to remove that line. I tried to use ! ag
, but git
does not find executable !
. I could do bash -c "..."
but this is clumsy and harder to read.
Is there a more elegant way to negate the exit code so git bisect run
can make use of that?