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

Re: [PATCH v3] build: add default aliases

From
Jeff King <peff@peff.net>
Date
Sep 24, 2013, 06:18 UTC
Message-ID
<20130924061830.GB6114@sigill.intra.peff.net>
In-Reply-To
<CAMP44s1-AXKRz4pqQsyCMLZgnxmxTaoeBGt8aNDFM0ttDTmBRQ@mail.gmail.com>
On Tue, Sep 24, 2013 at 12:49:21AM -0500, Felipe Contreras wrote:
> Anyway, if you are so worried about this hypothetical user not
> noticing that 'git ci' didn't commit all the files, we could ma ci to
> 'git commit -v' so we are being straightforward to the user as to what
> is being committed.

I do not think that is a useful suggestion, as the output of "commit -v" is typically too long for unsuspecting people to check carefully, and is redundant with the filename summary we already put in the commit template. And neither is shown with "-m", anyway. I agree it's a minority of cases where somebody will make a bogus commit because of it, though.

But let's take a step back for a moment. What was the goal of the patch? Who are we trying to help? People who already have identical aliases are not helped on existing boxes; they already have them. They might be helped on new boxes, where they will not have to copy over their custom aliases (but they would probably end up wanting to copy the rest of their config and aliases anyway). People who have different aliases for the same terms are unaffected on existing boxes, but slightly hindered on new boxes as the aliases do something else.

People with no matching aliases now get these aliases. What do they expect them to do? Do they expect "commit" or "commit -a"? Do they expect "status" or "status -s" or "status -sb"? Are we trying for consistency across git installations, or consistency with similar aliases in systems like cvs (in which case, would that argue for "commit -a")? Do people who have not bothered to configure the aliases even care?

My original question was: are these the best definitions of those shortcuts? I have not seen any answer to that.

-Peff
Previous: Felipe ContrerasNext: Felipe Contreras
Message 6 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.