git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/1] contrib/git-jump: support alias expansion
@ 2019-09-04 17:55 Taylor Blau
  2019-09-04 17:55 ` [PATCH 1/1] contrib/git-jump/git-jump: " Taylor Blau
  2019-09-05  6:04 ` [PATCH 0/1] contrib/git-jump: " Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Taylor Blau @ 2019-09-04 17:55 UTC (permalink / raw)
  To: git; +Cc: peff

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-05  6:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04 17:55 [PATCH 0/1] contrib/git-jump: support alias expansion Taylor Blau
2019-09-04 17:55 ` [PATCH 1/1] contrib/git-jump/git-jump: " Taylor Blau
2019-09-04 20:51   ` Taylor Blau
2019-09-05  6:04 ` [PATCH 0/1] contrib/git-jump: " Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).