My main aim is to filter out all pull request merges thus in theory i would expect the following to work(it doesn’t)
git log --grep="^!(Merge)"
Do I miss something ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, you can’t simply negate a word in a regexp by putting a bang in front of it (where did you find that?). You might have used lookarounds for that, but regular grep regexps do not support them. Using grep directly you can pass
-Poption to use much more powerful Perl regexps, but I didn’t find similar option for git log.Though, there is
--no-mergesoption that will filter out all merge commits from the log:Man page says that
--no-mergesmeans: