diff options
author | Taylor Blau <me@ttaylorr.com> | 2018-06-22 15:49:54 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-22 19:59:02 (GMT) |
commit | 240cf2a25744b45c514fe850363721615a1c4b8c (patch) | |
tree | 5d8eb7854c455e16cf51eaee970031275b6ed0a8 /contrib/git-jump/git-jump | |
parent | 6653fec3bb969d8be3987cf77654c0aa1778b6b5 (diff) | |
download | git-240cf2a25744b45c514fe850363721615a1c4b8c.zip git-240cf2a25744b45c514fe850363721615a1c4b8c.tar.gz git-240cf2a25744b45c514fe850363721615a1c4b8c.tar.bz2 |
contrib/git-jump/git-jump: jump to exact location
Take advantage of 'git-grep(1)''s new option, '--column' in order to
teach Peff's 'git-jump' script how to jump to the correct column for any
given match.
'git-grep(1)''s output is in the correct format for Vim's jump list, so
no additional cleanup is necessary.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/git-jump/git-jump')
-rwxr-xr-x | contrib/git-jump/git-jump | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/git-jump/git-jump b/contrib/git-jump/git-jump index 80ab059..931b0fe 100755 --- a/contrib/git-jump/git-jump +++ b/contrib/git-jump/git-jump @@ -52,7 +52,7 @@ mode_merge() { # editor shows them to us in the status bar. mode_grep() { cmd=$(git config jump.grepCmd) - test -n "$cmd" || cmd="git grep -n" + test -n "$cmd" || cmd="git grep -n --column" $cmd "$@" | perl -pe ' s/[ \t]+/ /g; |