Re: [PATCH v4 5/7] builtin/grep.c: add '--column' option to 'git-grep(1)'
- From
Taylor Blau <me@ttaylorr.com>
- Date
- May 7, 2018, 23:38 UTC
- Message-ID
- <20180507233807.GB77370@syl.local>
- In-Reply-To
- <CACsJy8BdJ0=gWZQVfSqy-vjtZVT4uZNzRaPYxRYxx2WNzaLodw@mail.gmail.com>
On Sat, May 05, 2018 at 08:15:03AM +0200, Duy Nguyen wrote:
Show 6 quoted lines
> 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)
Good question. My primary intention is giving 'contrib/git-jump/git-jump' the information it needs in order to tell $EDITOR how to seek to the relevant position within a line.
I have amended this patch to include the relevant bits, and will attach in v5.
Thanks, Taylor