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

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

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Jul 2, 2021, 22:14 UTC
Message-ID
<60df8fcf71d11_28bb20873@natae.notmuch>
In-Reply-To
<cb40e459-7862-b917-b4bb-7bd6f929adef@mfriebe.de>
martin wrote:
Show 18 quoted lines
> On 02/07/2021 23:12, Felipe Contreras wrote:
> > I know, but it comes from CVS.
> >
> > In both CVS and Subversion "commit" pushes a commit, so it can be seen
> > as the opposite of "checkout", which pulls a commit.
> >
> > That's not the case in git.
> >
> >> But of course other letters can be picked. I don't see an advantage in
> >> it though.
> > The advantage is that it's straightforward: co -> commit.
> 
> But it is not that different between git and svn/cvs
> 
> svn/cvs both store/restore from the repository. That happens to be on 
> the server.
> git  store/restore from the repository. That happens to be local. (the 
> remote is optional in git)
Fair point.

However, I don't think git actually checks out anything. If you see the English definition [1] the CVS checkout can be thought of as checking out a book from the library; the item you check out is not part of the repository afterwards. Git doesn't do that.

Either way we could leave the 'co' alias pending to see what happens with switch/restore, but my guess is that as time goes by 'checkout' will be used less and less.

Show 5 quoted lines
> That, said, it is ok to break with the old patterns. Otherwise 
> innovation can't happen.
> But, plenty of users have old habits, and those die hard.
> If the new aliases should help people, then those used to other meanings 
> of the same alias may not think of it as that much help.

Right, but not all users have old habits. Some were born after Subversion was created. An important decision such as default aliases should look into the future, not the past.

> Also, git has plenty more commands than other vcs. Even if not all of 
> them will be aliased, people will expect different sub sets of them in 
> the list of those with alias.
> Maybe 3 letter aliases will be less controversial

I don't think so. In my opinion the list of default aliases should be small, and for that two characters is fine.

Cheers.
[1] https://www.merriam-webster.com/dictionary/checkout
-- 
Felipe Contreras
Previous: martinNext: Ævar Arnfjörð Bjarmason
Message 31 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.