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

Re: Adding new/create & del/delete aliases into git

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 17, 2021, 00:57 UTC
Message-ID
<xmqqmtl059pl.fsf@gitster.g>
In-Reply-To
<CALtRjJ3bu1ub=407kt-aemfV6BU8CfPZJxLRG5WgTZBYWbaXCQ@mail.gmail.com>
Jasdeep Khalsa <jasdeepkhalsa1@gmail.com> writes:
Show 9 quoted lines
> I've been using the following aliases for a long time:
>
> del or delete = branch -D
> new or create = checkout -b
>
> And I feel these are good candidates as an addition into the core git
> API as they provide an easy way for new starters to understand the
> creating and deleting of branches - which is arguably one of the most
> common git operations.

He wants to see his "create" to create and "delete" to delete a worktree, not a branch. And she wants to see her "create" to create and "delete" to delete a repository, not a branch.

Not everybody shares your "feel that these are common".

Aliases and synonyms are so personal and it is better to make sure that we do not define more than necessary at the public level. Otherwise we will end up squatting on more good names that people may want to use for their own aliases.

Previous: Ævar Arnfjörð Bjarmason
Message 3 of 3 in “Adding new/create & del/delete aliases into git”
  1. Jasdeep KhalsaDec 16, 2021
  2. Ævar Arnfjörð BjarmasonDec 16, 2021
  3. Junio C HamanoDec 17, 2021

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.