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

Re: [PATCH 0/1] Alias 'list'-subcommands to 'ls'

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 12, 2020, 20:19 UTC
Message-ID
<xmqqblh7nqmu.fsf@gitster.c.googlers.com>
In-Reply-To
<20201012195335.189194-1-cedricschwyter@bluewin.ch>
Cedric Schwyter <cedricschwyter@bluewin.ch> writes:
> Since many CLI-tools make use of this alias and many programmers are
> used to it I thought I'd add it to git since I was missing such an alias.

Is there a "git somecmd" that allows "git somecmd ls" form, while these "git stash list", "git worktree list" subcommands take "list" and not "ls"? If so, this change may make sense, but otherwise, not really.

Show 17 quoted lines
>
> I only added it to built-in subcommands for now, might add it to some
> more commands in the future.
>
> Cedric Schwyter (1):
>   subcommands: alias 'list'-subcommands to 'ls' where applicable
>   docs: update docs with new alias
>
>  Documentation/git-bundle.txt          | 4 ++++
>  Documentation/git-sparse-checkout.txt | 3 +++
>  Documentation/git-stash.txt           | 5 +++++
>  Documentation/git-worktree.txt        | 5 +++++
>  builtin/bundle.c                      | 3 ++-
>  builtin/sparse-checkout.c             | 3 ++-
>  builtin/stash.c                       | 4 +++-
>  builtin/worktree.c                    | 3 ++-
>  8 files changed, 26 insertions(+), 4 deletions(-)
Previous: Cedric SchwyterNext: Cedric Schwyter
Message 3 of 5 in “Alias 'list'-subcommands to 'ls'”
  1. 0/1 Alias 'list'-subcommands to 'ls'Cedric Schwyter, Oct 12, 2020
  2. 1/1 subcommands: alias 'list'-subcommands to 'ls' where applicable docs: update docs with new aliasCedric Schwyter, Oct 12, 2020
  3. Junio C HamanoOct 12, 2020
  4. Cedric SchwyterOct 12, 2020
  5. Daniel TangJan 27, 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.