Skip to content

contrib/git-jump: support alias expansion

Taylor Blau git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1contrib/git-jump/git-jump: support alias expansioncontrib/git-jump/README contrib/git-jump/git-jump+7 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] contrib/git-jump: support alias expansion

Hi,

I have been meaning to send this patch for a while, which teaches the 'git-jump' script how to respect user aliases for commands like 'diff', 'merge', and 'grep'.

I often find myself parsing the output of 'git diff' (which I spell 'g di') in less, and then wanting to jump to some specific diff in a file, i.e., by running 'git jump diff -- <filename>'.

But, I am so used to typing 'di' instead of 'diff', that I often write the later invocation as 'g jump di -- <filename>', and 'git-jump' complains that it doesn't know what 'di' means.

Let's rectify that by teaching it how to expand alises, which is implemented in the patch below.

Thanks,
Taylor

Taylor Blau (1):
contrib/git-jump/git-jump: support alias expansion

 contrib/git-jump/README   | 4 ++++
 contrib/git-jump/git-jump | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

--
2.22.0