Re: [PATCH v4 5/7] builtin/grep.c: add '--column' option to 'git-grep(1)'
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 5, 2018, 06:15 UTC
- Message-ID
- <CACsJy8BdJ0=gWZQVfSqy-vjtZVT4uZNzRaPYxRYxx2WNzaLodw@mail.gmail.com>
- In-Reply-To
- <9a596d53d6b2523bc94e58678aa43e68068859b6.1525488108.git.me@ttaylorr.com>
On Sat, May 5, 2018 at 4:43 AM, Taylor Blau <me@ttaylorr.com> wrote:
> Teach 'git-grep(1)' a new option, '--column', to show the column > number of the first match on a non-context line.
Why? Or put it another way, what is this option used for? Only git-jump? (which should also be mentioned here if true)
Show 8 quoted lines
> > For example: > > $ git grep -n --column foo | head -n3 > .clang-format:51:14:# myFunction(foo, bar, baz); > .clang-format:64:7:# int foo(); > .clang-format:75:8:# void foo() >
-- Duy