git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's cooking in git.git (May 2018, #04; Wed, 30)

From
Taylor Blau <me@ttaylorr.com>
Date
May 30, 2018, 16:09 UTC
Message-ID
<20180530160908.GA8340@D-10-19-29-76.dhcp4.washington.edu>
In-Reply-To
<xmqqy3g1d4xa.fsf@gitster-ct.c.googlers.com>
On Wed, May 30, 2018 at 03:38:09PM +0900, Junio C Hamano wrote:
Show 12 quoted lines
> * tb/grep-column (2018-05-14) 7 commits
>  - contrib/git-jump/git-jump: jump to match column in addition to line
>  - grep.c: add configuration variables to show matched option
>  - builtin/grep.c: add '--column' option to 'git-grep(1)'
>  - grep.c: display column number of first match
>  - grep.[ch]: extend grep_opt to allow showing matched column
>  - grep.c: expose matched column in match_line()
>  - Documentation/config.txt: camel-case lineNumber for consistency
>  (this branch is used by tb/grep-only-matching.)
>
>  "git grep" learned the "--column" option that gives not just the
>  line number but the column number of the hit.

The last we spoke about this, we had decided on a "min-starting, max-ending" semantics for deciding on the columnar offset for extended patterns like --and, --or, and --not.

I have these patches mostly updated on my copy (available at https://github.com/ttaylorr/git/compare/tb/grep-column) but am out of the office for the next week, so I will polish and send these on June 8th.

> * tb/grep-only-matching (2018-05-14) 2 commits
>  - builtin/grep.c: teach '-o', '--only-matching' to 'git-grep'
>  - grep.c: extract show_line_header()
>  (this branch uses tb/grep-column.)

This topic is done, but will be frustrating to merge after the changes in tb/grep-column. I'll update this topic once tb/grep-column graduates to master, that way they will both apply cleanly.

Thanks, Taylor

Previous: Junio C HamanoNext: Taylor Blau
Message 2 of 9 in “What's cooking in git.git (May 2018, #04; Wed, 30)”
  1. Junio C HamanoMay 30, 2018
  2. Taylor BlauMay 30, 2018
  3. Taylor BlauMay 30, 2018
  4. Taylor BlauJun 11, 2018
  5. Junio C HamanoJun 11, 2018
  6. Junio C HamanoMay 31, 2018
  7. Duy NguyenMay 30, 2018
  8. Stefan BellerMay 30, 2018
  9. Junio C HamanoMay 31, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.