diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-07-18 21:20:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-18 21:20:31 +0200 |
commit | d036d667b7f297f8305ffaaec212a95da7022ebe (patch) | |
tree | 40518ad23cc91e47c395bcfc760671a77e072c2c /grep.h | |
parent | Merge branch 'vs/typofixes' (diff) | |
parent | contrib/git-jump/git-jump: jump to exact location (diff) | |
download | git-d036d667b7f297f8305ffaaec212a95da7022ebe.tar.xz git-d036d667b7f297f8305ffaaec212a95da7022ebe.zip |
Merge branch 'tb/grep-column'
"git grep" learned the "--column" option that gives not just the
line number but the column number of the hit.
* tb/grep-column:
contrib/git-jump/git-jump: jump to exact location
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 {,inverted} match column in match_line()
Documentation/config.txt: camel-case lineNumber for consistency
Diffstat (limited to 'grep.h')
-rw-r--r-- | grep.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -67,6 +67,7 @@ enum grep_color { GREP_COLOR_FILENAME, GREP_COLOR_FUNCTION, GREP_COLOR_LINENO, + GREP_COLOR_COLUMNNO, GREP_COLOR_MATCH_CONTEXT, GREP_COLOR_MATCH_SELECTED, GREP_COLOR_SELECTED, @@ -139,6 +140,7 @@ struct grep_opt { int prefix_length; regex_t regexp; int linenum; + int columnnum; int invert; int ignore_case; int status_only; |