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

Subscribers

People subscribed via source and target branches