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

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

From
Taylor Blau <me@ttaylorr.com>
Date
Sep 4, 2019, 17:55 UTC
Message-ID
<cover.1567619579.git.me@ttaylorr.com>
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

Next: Taylor Blau
Message 1 of 4 in “contrib/git-jump: support alias expansion”
  1. 0/1 contrib/git-jump: support alias expansionTaylor Blau, Sep 4, 2019
  2. 1/1 contrib/git-jump/git-jump: support alias expansionTaylor Blau, Sep 4, 2019
  3. Taylor BlauSep 4, 2019
  4. Jeff KingSep 5, 2019

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.