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

Re: [PATCH v3] build: add default aliases

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 17, 2013, 19:51 UTC
Message-ID
<xmqqppr3znf1.fsf@gitster.dls.corp.google.com>
In-Reply-To
<525e0b6e25aeb_81a151de7495@nysa.notmuch>
Felipe Contreras <felipe.contreras@gmail.com> writes:
Show 21 quoted lines
> Junio C Hamano wrote:
>> Jeff King <peff@peff.net> writes:
>> 
>> > It seems[1] that some
>> > people define "ci" as "commit -a", and some people define "st" as
>> > "status -s" or even "status -sb".
>> 
>> These option variants aside.
>> 
>> Just like thinking that committing must be the same as publishing,
>> it is a cvs/svn induced braindamage to think that "checking in" must
>> be the same as "committing".  The former is a sign of not
>> understanding the "distributed", the latter "the index".
>> 
>> In a world with both check-in and commit as two words usable to
>> denote possibly different concepts, it may make sense to say "you
>> check-in the current status of the working tree files into the
>> index, in order to make commits out of it later".
>
> Yet a wide amount of users do use 'ci' to mean 'commit', so basically they are
> just wrong. So you are saying they are just ignorant.

I am sick of seeing my word twisted, especially when they were not even addressed to you (see the message's primary recipients list). Those who want to type "git ci" due to their familiarity with "svn ci" are not wrong; they can do so if they choose.

Let's try again (see below).
Show 5 quoted lines
> Now, if you are commenting on the aliases, that would mean you are not against
> the idea of aliaes per se, but more about values of those aliases. So if we
> agreed on the right values, you would welcome this patch.
>
> Is that correct?
No.

I agree with the issue the message I was replying to raised. The alias mechanism is a way to help users to define their own convenient short-cut. If you want to say "git ci" to mean "git commit" (and not "git commit -a" or something else), define it for your own use, and stop there, without getting in the way of other people. That is why I see an attempt to add hard-coded set of aliases as a move in the wrong direction.

A set of hard-coded alias that _officially_ declares that "checkin" is an equivalent to "commit" has another issue. It will close the door for us to later add "git checkin" that may mean something different from "git commit", and that is another reason why I do not agree with the patch under discussion in this thread. A "checkin" that is an operation that checks-in the current contents to the index is one example of an action other than committing that the word may make sense for, because "git checkout README.txt" is about checking out of the index, its logical opposite "checkin" could be about checking into the index.

Previous: Felipe ContrerasNext: Felipe Contreras
Message 19 of 34 in “build: add default aliases”
  1. build: add default aliasesFelipe Contreras, Sep 21, 2013
  2. Jeff KingSep 24, 2013
  3. Felipe ContrerasSep 24, 2013
  4. Jeff KingSep 24, 2013
  5. Felipe ContrerasSep 24, 2013
  6. Jeff KingSep 24, 2013
  7. Felipe ContrerasSep 24, 2013
  8. Jeff KingSep 24, 2013
  9. Felipe ContrerasSep 24, 2013
  10. Jonathan NiederSep 24, 2013
  11. John SzakmeisterSep 24, 2013
  12. Felipe ContrerasSep 28, 2013
  13. Michael HaggertySep 29, 2013
  14. Felipe ContrerasSep 29, 2013
  15. Jonathan NiederSep 30, 2013
  16. Duy NguyenOct 1, 2013
  17. Junio C HamanoOct 15, 2013
  18. Felipe ContrerasOct 16, 2013
  19. Junio C HamanoOct 17, 2013
  20. Felipe ContrerasOct 17, 2013
  21. John SzakmeisterSep 24, 2013
  22. Felipe ContrerasSep 24, 2013
  23. John SzakmeisterSep 24, 2013
  24. Felipe ContrerasSep 24, 2013
  25. John SzakmeisterSep 25, 2013
  26. Felipe ContrerasSep 25, 2013
  27. Matthieu MoySep 25, 2013
  28. Felipe ContrerasSep 25, 2013
  29. Matthieu MoySep 25, 2013
  30. Felipe ContrerasSep 25, 2013
  31. Matthieu MoySep 25, 2013
  32. Felipe ContrerasSep 25, 2013
  33. SZEDER GáborSep 24, 2013
  34. build: add default aliasesFelipe Contreras, Sep 24, 2013

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.