Merge lp:~parthm/bzr-alldocs/bzr-grep-plugin-help into lp:bzr-alldocs

Proposed by Parth Malwankar
Status: Merged
Merged at revision: not available
Proposed branch: lp:~parthm/bzr-alldocs/bzr-grep-plugin-help
Merge into: lp:bzr-alldocs
Diff against target: 100 lines (+85/-0)
2 files modified
plugins/en/grep-plugin.txt (+84/-0)
plugins/en/index.txt (+1/-0)
To merge this branch: bzr merge lp:~parthm/bzr-alldocs/bzr-grep-plugin-help
Reviewer Review Type Date Requested Status
Ian Clatworthy Approve
Review via email: mp+22523@code.launchpad.net

Description of the change

This merge proposal adds help for bzr-grep to the docs.

To post a comment you must log in.
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Thanks. I'll merge.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'plugins/en/grep-plugin.txt'
2--- plugins/en/grep-plugin.txt 1970-01-01 00:00:00 +0000
3+++ plugins/en/grep-plugin.txt 2010-03-31 09:23:24 +0000
4@@ -0,0 +1,84 @@
5+``grep`` - Grep through files known to bzr
6+=========================================================
7+
8+================ ============================================================
9+Version 0.2.0
10+Branch https://launchpad.net/bzr-grep
11+Owner `parthm <https://launchpad.net/~parthm>`_
12+GNU/Linux Yes
13+Windows Yes
14+Mac OS X Yes
15+================ ============================================================
16+
17+Print lines matching PATTERN for specified files and revisions.
18+
19+
20+grep
21+----
22+
23+**Purpose**
24+
25+Print lines matching PATTERN for specified files and revisions.
26+
27+**Usage**
28+
29+bzr grep PATTERN [PATH...]
30+
31+**Options**
32+
33+
34+--from-root Search for pattern starting from the root of the
35+ branch. (implies --recursive)
36+-n, --line-number show 1-based line number.
37+-F, --fixed-string Interpret PATTERN is a single fixed string (not
38+ regex).
39+-v, --verbose Display more information.
40+-Z, --null Write an ASCII NUL (\0) separator between output lines
41+ rather than a newline.
42+-h, --help Show help message.
43+-q, --quiet Only display errors and warnings.
44+-l, --files-with-matches
45+ Print only the name of each input file in which
46+ PATTERN is found.
47+-i, --ignore-case ignore case distinctions while matching.
48+--levels=N Number of levels to display - 0 for all, 1 for
49+ collapsed (1 is default).
50+--usage Show usage message and options.
51+-X GLOB, --exclude=GLOB
52+ Skip files whose base name matches GLOB.
53+--no-recursive Don't recurse into subdirectories. (default is
54+ --recursive)
55+-I GLOB, --include=GLOB
56+ Search only files whose base name matches GLOB.
57+-L, --files-without-match
58+ Print only the name of each input file in which
59+ PATTERN is not found.
60+-r ARG, --revision=ARG
61+ See "help revisionspec" for details.
62+
63+
64+**Description**
65+
66+This command searches the specified files and revisions for a given
67+pattern. The pattern is specified as a Python regular expressions[1].
68+
69+If the file name is not specified, the revisions starting with the
70+current directory are searched recursively. If the revision number is
71+not specified, the working copy is searched. To search the last committed
72+revision, use the '-r -1' or '-r last:1' option.
73+
74+Unversioned files are not searched unless explicitly specified on the
75+command line. Unversioned directores are not searched.
76+
77+When searching a pattern, the output is shown in the 'filepath:string'
78+format. If a revision is explicitly searched, the output is shown as
79+'filepath~N:string', where N is the revision number.
80+
81+--include and --exclude options can be used to search only (or exclude
82+from search) files with base name matches the specified Unix style GLOB
83+pattern. The GLOB pattern an use *, ?, and [...] as wildcards, and \
84+to quote wildcard or backslash character literally. Note that the glob
85+pattern is not a regular expression.
86+
87+[1] http://docs.python.org/library/re.html#regular-expression-syntax
88+
89
90=== modified file 'plugins/en/index.txt'
91--- plugins/en/index.txt 2010-03-03 17:16:07 +0000
92+++ plugins/en/index.txt 2010-03-31 09:23:24 +0000
93@@ -123,6 +123,7 @@
94 bzrtools-plugin
95 colo-plugin
96 custom-url-schemes-plugin
97+ grep-plugin
98
99
100 Foreign branches

Subscribers

People subscribed via source and target branches