Re: [PATCH 5/6] builtin/grep.c: show column numbers via --column-number

2018-04-21 Thread Martin Ågren
On 21 April 2018 at 05:45, Taylor Blau wrote: > This commit teaches 'git-grep(1)' a new option, '--column-number'. This > option builds upon previous commits to show the column number of the > first match on a non-context line. > > For example: > > $ git grep -mn example |

Re: [PATCH 5/6] builtin/grep.c: show column numbers via --column-number

2018-04-20 Thread René Scharfe
Am 21.04.2018 um 06:14 schrieb Junio C Hamano: > Junio C Hamano writes: > >> Taylor Blau writes: >> >>> This commit teaches 'git-grep(1)' a new option, '--column-number'. This >>> ... >>> +`columnnumber`;; >>> + column number prefix (when using `-m`) >>

Re: [PATCH 5/6] builtin/grep.c: show column numbers via --column-number

2018-04-20 Thread Junio C Hamano
Junio C Hamano writes: > Taylor Blau writes: > >> This commit teaches 'git-grep(1)' a new option, '--column-number'. This >> ... >> +`columnnumber`;; >> +column number prefix (when using `-m`) > > Is there other people's tool (preferrably some variant

Re: [PATCH 5/6] builtin/grep.c: show column numbers via --column-number

2018-04-20 Thread Junio C Hamano
Taylor Blau writes: > This commit teaches 'git-grep(1)' a new option, '--column-number'. This > ... > +`columnnumber`;; > + column number prefix (when using `-m`) Is there other people's tool (preferrably some variant of "grep") that has an option to tell it to show the

[PATCH 5/6] builtin/grep.c: show column numbers via --column-number

2018-04-20 Thread Taylor Blau
This commit teaches 'git-grep(1)' a new option, '--column-number'. This option builds upon previous commits to show the column number of the first match on a non-context line. For example: $ git grep -mn example | head -n3 .clang-format:51:14:# myFunction(foo, bar, baz);