Equivalent to grep -v with git log pickaxe

Probably a simple question, but it cannot find the answer to search. Is there a way to nullify a git log pickaxe search equivalent to grep -v type

For example, I want to find all commits without the Change-Id gerrit tag

 git log -SChange-Id <some anti regex match switch> 
+4
source share
1 answer
 git log --not $(git log --format="%H" -S'Change-Id <anti regex>') 

If you have other arguments, you should duplicate them, one inside --not and one outside, otherwise it can be very slow. Alternatively, use a variable.

( git rev-list may have been a leading option inside --not , but it does not have the -S option.

0
source

Source: https://habr.com/ru/post/1436505/


All Articles