> grep", it is quite straight-forward to say "report hits for lines > to the commands in the "git log" family is very limited. > But in general, the way the internal "git grep" machinery is exposed Match the pattern specified with `-grep=`.īoth the option name and this sentence suggest that it only should Limit the commits output to ones with log message that do not > That is an actionable improvement idea to introduce a synonym -)ĭocumentation/rev-list-options.txt says about -invert-grep: To: Junio C Hamano, Dotan Cohen +Cc: git, Christoph JunghansĪm 16.12.21 um 20:42 schrieb Junio C Hamano: ![]() 18:16 ` Junio C Hamano 0 siblings, 1 reply 6+ messages in thread 19:42 ` Junio C Hamano 16:48 ` René Scharfe Header, the other in the message part, of the commit object). "-not" for a quite different purpose, "git log -grep" cannot evenĮxpress something similar, even to find hits on a single line, letĪlone finding hits on two different lines (i.e. Grep", it is quite straight-forward to say "report hits for linesīut because that the commands in the "log" family already use To the commands in the "git log" family is very limited. That is an actionable improvement idea to introduce a synonym -)īut in general, the way the internal "git grep" machinery is exposed > one would expect it to revert grep only. > Possibly, but the flag is called -invert-grep not -invert-matches so 16:48 ` René Scharfe 0 siblings, 1 reply 6+ messages in threadįrom: Junio C Hamano 19:42 UTC ( / raw) 14:54 ` Dotan Cohen 19:42 ` Junio C Hamano awk or worse, how would one get the commitsīy a particular author that do not have a specific string in theĬommit message? Prettying to oneline would make the piping easier toĪt least get the commit ids, but I'd like to see the whole commit User expectations is not an unusual property of git :) Possibly, but the flag is called -invert-grep not -invert-matches so > command looks for commits that do not have Revert and (or is that > engine, so with -invert-grep, I would not be surprised if the > I think -author and -grep uses the same internal pattern matching 19:42 ` Junio C Hamano 0 siblings, 1 reply 6+ messages in thread 22:08 ` Junio C Hamano 14:54 ` Dotan Cohen I think -author and -grep uses the same internal pattern matchingĮngine, so with -invert-grep, I would not be surprised if theĬommand looks for commits that do not have Revert and (or is that > I also tried to change the order of the options, but the results > The "-author" filter seems to be ignored when the "-invert-grep" > What's different between what you expected and what actually happened? > The list of commits included commits by authors other than Shachar. > the string "Revert" in the commit message. > I expected to see the last 8 commits from Shachar that did not have > $ git log -8 -author=Shachar -grep=Revert -invert-grep > What did you do before the bug happened? ![]() 14:54 ` Dotan Cohen 0 siblings, 1 reply 6+ messages in threadįrom: Junio C Hamano 22:08 UTC ( / raw) 9:50 Git bug: Filter ignored when "-invert-grep" option is used Dotan 22:08 ` Junio C Hamano * Re: Git bug: Filter ignored when "-invert-grep" option is used. $SHELL (typically, interactive shell): /bin/bash I also tried to change the order of the options, but the results The "-author" filter seems to be ignored when the "-invert-grep" What's different between what you expected and what actually happened? The list of commits included commits by authors other than Shachar. The string "Revert" in the commit message. ![]() I expected to see the last 8 commits from Shachar that did not have $ git log -8 -author=Shachar -grep=Revert -invert-grep 22:08 ` Junio C Hamano 0 siblings, 1 reply 6+ messages in thread All of help / color / mirror / Atom feed * Git bug: Filter ignored when "-invert-grep" option is used. Git bug: Filter ignored when "-invert-grep" option is used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |