~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-updates

« back to all changes in this revision

Viewing changes to Documentation/git-grep.txt

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-05-01 08:59:06 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20070501085906-n1e5qzoc00wvlzt3
Tags: 1:1.5.1.3-1
* new upstream point release.
  * git-add tried to optimize by finding common leading directories
    across its arguments but botched, causing very confused behaviour
    (closes: #420671).
  * Documentation/git-reset.txt: suggest git commit --amend in example
    (closes: #420112).
  * unofficial rpm.spec file shipped with git was letting ETC_GITCONFIG
    set to /usr/etc/gitconfig.  Tweak the official Makefile to make it
    harder for distro people to make the same mistake, by setting the
    variable to /etc/gitconfig if prefix is set to /usr (closes:
    #420675).
* debian/changelog.upstream: upstream changes taken from mailing list
  announcement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
'git-grep' [--cached]
13
13
           [-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
14
14
           [-v | --invert-match] [-h|-H] [--full-name]
15
 
           [-E | --extended-regexp] [-G | --basic-regexp] [-F | --fixed-strings]
16
 
           [-n] [-l | --files-with-matches] [-L | --files-without-match]
 
15
           [-E | --extended-regexp] [-G | --basic-regexp]
 
16
           [-F | --fixed-strings] [-n]
 
17
           [-l | --files-with-matches] [-L | --files-without-match]
17
18
           [-c | --count] [--all-match]
18
19
           [-A <post-context>] [-B <pre-context>] [-C <context>]
19
 
           [-f <file>] [-e] <pattern> [--and|--or|--not|(|)|-e <pattern>...]
20
 
           [<tree>...]
 
20
           [-f <file>] [-e] <pattern>
 
21
           [--and|--or|--not|(|)|-e <pattern>...] [<tree>...]
21
22
           [--] [<path>...]
22
23
 
23
24
DESCRIPTION
39
40
        Ignore case differences between the patterns and the
40
41
        files.
41
42
 
 
43
-I::
 
44
        Don't match the pattern in binary files.
 
45
 
42
46
-w | --word-regexp::
43
47
        Match the pattern only at word boundary (either begin at the
44
48
        beginning of a line, or preceded by a non-word character; end at
64
68
        Use POSIX extended/basic regexp for patterns.  Default
65
69
        is to use basic regexp.
66
70
 
 
71
-F | --fixed-strings::
 
72
        Use fixed strings for patterns (don't interpret pattern
 
73
        as a regex).
 
74
 
67
75
-n::
68
76
        Prefix the line number to matching lines.
69
77
 
81
89
        line containing `--` between contiguous groups of
82
90
        matches.
83
91
 
 
92
-<num>::
 
93
        A shortcut for specifying -C<num>.
 
94
 
84
95
-f <file>::
85
96
        Read patterns from <file>, one per line.
86
97