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

RE: [PATCH 5/5] config: add default aliases

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Jul 2, 2021, 14:15 UTC
Message-ID
<03ac01d76f4c$ad23a130$076ae390$@nexbridge.com>
In-Reply-To
<874kdcal1k.fsf@evledraar.gmail.com>
On July 2, 2021 9:42 AM, Ævar Arnfjörð Bjarmason wrote:
Show 45 quoted lines
>To: Randall S. Becker <rsbecker@nexbridge.com>
>Cc: 'martin' <test2@mfriebe.de>; 'Felipe Contreras' <felipe.contreras@gmail.com>; 'Andreas Schwab' <schwab@linux-m68k.org>;
>git@vger.kernel.org; 'Junio C Hamano' <gitster@pobox.com>
>Subject: Re: [PATCH 5/5] config: add default aliases
>
>
>On Fri, Jul 02 2021, Randall S. Becker wrote:
>
>> On July 2, 2021 7:15 AM, martin wrote:
>>>On 02/07/2021 12:54, Felipe Contreras wrote:
>>>> martin wrote:
>>>>> IMHO it would be good to (partly) follow other vcs, and have commit
>>>>> = ci
>>>> I'm fine with leaving co out of the default aliases if it's deemed
>>>> "too controversial".
>>>>
>>>> But ci doesn't make sense. ci comes from "check in" which has no
>>>> similitude in git.
>>>svn uses it for "commit".
>>>It can be seen as CommIt.
>>>
>>>But of course other letters can be picked. I don't see an advantage in it though.
>>>Like CoMmit cm ? or CommiT ct ? None of them seems any better to me.
>>>
>>>> I don't think it's a good idea to leave "git checkout" without an
>>>> alias (it's perhaps the second or third most used command), but at
>>>> least some aliases are better than no aliases.
>>>Well, that goes back to a bigger question. And from the brief time I
>>>have been on this mail list, it appears to me there is a divide into 2 groups.
>>>
>>>If checkout is really meant to give way to switch/restore then it
>>>needs no further advertising. And then the current usage statistics are a relict from the before switch/restore time.
>>>
>>>If on the other hand checkout is not just to be kept for backward
>>>compatibility, but should always remain an equal alternative to switch/restore (i.e. it should still be taught to new user in 20 years) then
>it wants to have a default alias.
>>
>> In my opinion, default aliases are not a good path. If a command is
>> intended to be part of the git command set, then it should be a
>> builtin not an alias. Users have their own alias setups and implied
>> conflicts are just going to be confusing and end up in help, examples,
>> presentations, and so forth.
>
>So aside from the "are these aliases good idea?" discussion, would you prefer if they're implemented that we theat them the exact same
>way we do "git fsck-objects" and "git fsck"? I.e. list them twice in git.c, just pointing to the same cmd_fsck?
Without knowing the full history of why the duplication, yes. That would be my preference. If it is a git command, it should be handled like one as closely as possible. Presumably, it also would show up in git help -a. I would not expect aliases to show in help.
Previous: Ævar Arnfjörð BjarmasonNext: martin
Message 17 of 41 in “Default aliases”
  1. 0/5 Default aliasesFelipe Contreras, Jul 2, 2021
  2. 1/5 test: add missing whitespacesFelipe Contreras, Jul 2, 2021
  3. 2/5 config: trivial style fixFelipe Contreras, Jul 2, 2021
  4. 3/5 config: trivial struct initialization cleanupFelipe Contreras, Jul 2, 2021
  5. 4/5 config: initialize origin_type correctlyFelipe Contreras, Jul 2, 2021
  6. 5/5 config: add default aliasesFelipe Contreras, Jul 2, 2021
  7. Andreas SchwabJul 2, 2021
  8. Felipe ContrerasJul 2, 2021
  9. Andreas SchwabJul 2, 2021
  10. Felipe ContrerasJul 2, 2021
  11. Andreas SchwabJul 2, 2021
  12. martinJul 2, 2021
  13. Felipe ContrerasJul 2, 2021
  14. martinJul 2, 2021
  15. Randall S. BeckerJul 2, 2021
  16. Ævar Arnfjörð BjarmasonJul 2, 2021
  17. Randall S. BeckerJul 2, 2021
  18. martinJul 2, 2021
  19. Felipe ContrerasJul 2, 2021
  20. Randall S. BeckerJul 2, 2021
  21. Felipe ContrerasJul 2, 2021
  22. Junio C HamanoJul 2, 2021
  23. Felipe ContrerasJul 2, 2021
  24. Felipe ContrerasJul 2, 2021
  25. martinJul 2, 2021
  26. Felipe ContrerasJul 2, 2021
  27. Randall S. BeckerJul 2, 2021
  28. Felipe ContrerasJul 2, 2021
  29. Felipe ContrerasJul 2, 2021
  30. martinJul 2, 2021
  31. Felipe ContrerasJul 2, 2021
  32. Ævar Arnfjörð BjarmasonJul 2, 2021
  33. Felipe ContrerasJul 2, 2021
  34. martinJul 2, 2021
  35. Felipe ContrerasJul 2, 2021
  36. Randall S. BeckerJul 5, 2021
  37. Randall S. BeckerJul 6, 2021
  38. Felipe ContrerasJul 6, 2021
  39. Philip OakleyJul 10, 2021
  40. Jeff KingJul 3, 2021
  41. Felipe ContrerasJul 6, 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.