{"thread":{"id":"5097","subject":"[PATCH] git-grep: document --and, --or, --not, ( and )","startedAt":"2006-08-02T22:04:56Z","lastAt":"2006-08-02T22:04:56Z","messageCount":1,"participants":["Matthias Lederhofer"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"24606","messageId":"E1G8Opk-0003lj-Q7@moooo.ath.cx","threadId":"5097","inReplyTo":null,"subject":"[PATCH] git-grep: document --and, --or, --not, ( and )","fromName":"Matthias Lederhofer","fromEmail":"matled@gmx.net","sentAt":"2006-08-02T22:04:56Z","receivedAt":"2006-08-02T22:04:56Z","isPatch":true,"sender":{"key":"matled@gmx.net","avatar":null},"body":"Signed-off-by: Matthias Lederhofer <matled@gmx.net>\n---\nThe synopsis looks a bit strange, perhaps someone else has an idea for\nthis.\n---\n Documentation/git-grep.txt |   11 +++++++++--\n 1 files changed, 9 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt\nindex 62a8e7f..544ad24 100644\n--- a/Documentation/git-grep.txt\n+++ b/Documentation/git-grep.txt\n@@ -16,7 +16,7 @@ SYNOPSIS\n \t   [-n] [-l | --files-with-matches] [-L | --files-without-match]\n \t   [-c | --count]\n \t   [-A <post-context>] [-B <pre-context>] [-C <context>]\n-\t   [-f <file>] [-e] <pattern>\n+\t   [-f <file>] [-e] <pattern> [--and|--or|--not|(|)|-e <pattern>...]\n \t   [<tree>...]\n \t   [--] [<path>...]\n \n@@ -74,7 +74,14 @@ OPTIONS\n -e::\n \tThe next parameter is the pattern. This option has to be\n \tused for patterns starting with - and should be used in\n-\tscripts passing user input to grep.\n+\tscripts passing user input to grep.  Multiple patterns are\n+\tcombined by 'or'.\n+\n+--and | --or | --not | ( | )::\n+\tSpecify how multiple patterns are combined using boolean\n+\texpressions.  `--or` is the default operator.  `--and` has\n+\thigher precedence than `--or`.  `-e` has to be used for all\n+\tpatterns.\n \n `<tree>...`::\n \tSearch blobs in the trees for specified patterns.\n-- \n1.4.2.rc2.g4713\n"}]}