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

Re: What's cooking in git.git (Feb 2011, #06; Sun, 27)

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 2, 2011, 05:24 UTC
Message-ID
<7vwrkiccy6.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110301205424.GA18793@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> So I'm curious what you think is missing in the balance you mentioned
> above.
I touched this in a separate message, I think...
Show 7 quoted lines
> A few other things I noticed are:
> ...
>     I am so used to regular git output. But I think just using " %h %s",
>     e.g.:
>
>        1234abcd commit subject one
>        5678defa commit subject two
That would be better, I agree.
Show 8 quoted lines
> ...
>     In other words, I think this safety valve is not just useful for
>     clueless people who make commits without realizing they're on a
>     detached HEAD. It is also useful for clueful people as a helpful
>     reminder that they may be leaving commits behind, and they can
>     ignore or deal with it as appropriate. I tend to ignore the
>     "Previous HEAD was..." message because it shows _every time_,
>     whether those are my new commits or not.
... never thought about this from that angle.  Perhaps you are right.
>   - Nit: you nicely use "%d commit%s" to handle the single/plural case
>     in the warning message, but then you "them" later on. It needs
>     (1 < lost) ? "them" : "it".

I actually don't like playing games like that, especially when i18n topic is in flight. Among the languages I know rules reasonably well, two has the rule that a countable noun is spelled differently depending on the number of that thing is one or more, and one spells the noun the same way regardless of the number. Who knows if git needs to be translated into a language whose noun changes its shape three-way, depending on the number being one, two, or more?

Previous: Jeff KingNext: Piotr Krukowiecki
Message 7 of 12 in “What's cooking in git.git (Feb 2011, #06; Sun, 27)”
  1. Junio C HamanoFeb 28, 2011
  2. Sverre RabbelierFeb 28, 2011
  3. Junio C HamanoFeb 28, 2011
  4. Jeff KingMar 1, 2011
  5. Junio C HamanoMar 2, 2011
  6. Jeff KingMar 2, 2011
  7. Junio C HamanoMar 2, 2011
  8. Piotr KrukowieckiMar 2, 2011
  9. Jakub NarebskiMar 2, 2011
  10. Ævar Arnfjörð BjarmasonMar 10, 2011
  11. Jakub NarebskiMar 10, 2011
  12. Jeff KingMar 2, 2011

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.