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

Re: [PATCH] git-jump: pick a mode automatically when invoked without arguments

From
Greg Hurrell <greg@hurrell.net>
Date
May 8, 2026, 14:30 UTC
Message-ID
<c5e0a1fa-f228-41dd-b547-07b0ad6c0964@app.fastmail.com>
In-Reply-To
<20260508141314.GB709299@coredump.intra.peff.net>
On Fri, May 8, 2026, at 4:13 PM, Jeff King wrote:
Show 5 quoted lines
> On Fri, May 08, 2026 at 09:07:34AM +0000, Greg Hurrell via GitGitGadget wrote:
> 
> I'd be a little worried that it is more confusing to somebody
> approaching the command for the first time and just runs "git jump" to
> not see usage or other guidance. But that might be overly paranoid.
Hopefully, they at least read the README before installing it from contrib/
(although Homebrew recently starting installing it for folks automatically,
so may not remain true for much longer on macOS...)
 
> Would having "git jump auto" work for you? I.e., are you primarily
> trying to avoid the mental effort of selecting the command, or the
> finger effort of typing it?

It's mostly the finger effort of typing it because I generally know exactly which mode I want; eg.

- I'm in the middle of a rebase, and hit a conflict; 100% of the time,
  I want to explore the conflicts, so I want `git jump` to do `git jump
  merge`.
- I have unstaged changes, and I want to make some tweaks before committing;
  so I want `git jump` to do `git jump diff`.
- Otherwise, I'm wanting to search for something (ie. `git jump grep`),
  so by definition I'm going to be doing some extra typing anyway (ie.
  `git jump grep <pattern>`).

This is muscle memory for me at this point, because I've had a `git jump` alias for this in my dotfiles[^1] for a couple of years. Homebrew installing `git-jump` by default a few months ago[^2] broke this, because aliases can't shadow builtin commands.

[^1]: https://github.com/wincent/wincent/commit/99183f86fe35 [^2]: https://github.com/Homebrew/homebrew-core/commit/e9fc066240f2

Best wishes, Greg

Previous: Jeff KingNext: Jeff King
Message 3 of 15 in “git-jump: pick a mode automatically when invoked without arguments”
  1. git-jump: pick a mode automatically when invoked without argumentsGreg Hurrell via GitGitGadget, May 8, 2026
  2. Jeff KingMay 8, 2026
  3. Greg HurrellMay 8, 2026
  4. Jeff KingMay 8, 2026
  5. Erik Cervin EdinMay 14, 2026
  6. Greg HurrellMay 19, 2026
  7. Jeff KingMay 19, 2026
  8. git-jump: pick a mode automatically when invoked without argumentsGreg Hurrell via GitGitGadget, May 20, 2026
  9. Junio C HamanoMay 21, 2026
  10. Junio C HamanoMay 21, 2026
  11. git-jump: pick a mode automatically when invoked without argumentsGreg Hurrell via GitGitGadget, May 21, 2026
  12. Junio C HamanoMay 21, 2026
  13. Jeff KingMay 22, 2026
  14. Greg HurrellMay 22, 2026
  15. Erik Cervin EdinMay 26, 2026

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.