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

Re: [GSoC][Proposal RFC] Consolidate ref-related functionality into git-refs

From
Patrick Steinhardt <ps@pks.im>
Date
Apr 4, 2025, 11:48 UTC
Message-ID
<Z-_HBe1lOu6_oRbr@pks.im>
In-Reply-To
<CAOLa=ZQ4nTP7Ls=JsnQSbvpvw+OhjXqqoQxpsTKA0x-HxaDH5A@mail.gmail.com>
On Fri, Apr 04, 2025 at 04:46:58AM -0700, Karthik Nayak wrote:
Show 35 quoted lines
> Meet Soni <meetsoni3017@gmail.com> writes:
> 
> [snip]
> 
> > Command mapping and naming:
> > ---------------------------
> >
> > I have taken reference for potential names for these subcommands from Patrick’s
> > suggestion (https://gitlab.com/gitlab-org/git/-/issues/330):
> >
> >   # Replaces git-show-ref(1) and git-for-each-ref(1).
> >   $ git refs list
> >
> >   # Replaces `git show-ref --exists`.
> >   $ git refs exist
> >
> >   # Replaces `git show-ref --verify <ref>`.
> >   $ git refs show
> >
> >   # Replaces git-symbolic-ref(1) to show a ref.
> >   $ git refs resolve
> >
> >   # Replaces git-pack-ref(1).
> >   $ git refs pack
> >
> >   # Replaces git-update-ref(1).
> >   $ git refs write
> >
> >   # Replaces git-check-ref-format(1).
> >   $ git refs check-format
> >
> 
> One other command that I noticed, which we didn't talk about it 'git
> reflog'. I would think, it would be nice to also fit this as 'git refs
> logs', but it doesn't have to be part of GSoC.

Wouldn't that become awkward though as you now basically have subsubcommands? `git refs log expire`, `git refs log exists` and related.

Patrick
Previous: Karthik NayakNext: Karthik Nayak
Message 6 of 8 in “[GSoC][Proposal RFC] Consolidate ref-related functionality into git-refs”
  1. Meet SoniApr 1, 2025
  2. Patrick SteinhardtApr 2, 2025
  3. Meet SoniApr 3, 2025
  4. Patrick SteinhardtApr 3, 2025
  5. Karthik NayakApr 4, 2025
  6. Patrick SteinhardtApr 4, 2025
  7. Karthik NayakApr 4, 2025
  8. Meet SoniApr 4, 2025

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.