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

[PATCH v2 0/5] jn/shortlog

From
Jonathan Nieder <jrnieder@gmail.com>
Date
May 4, 2010, 02:52 UTC
Message-ID
<20100504025217.GA7322@progeny.tock>
In-Reply-To
<20100504015635.GA7258@progeny.tock>
Jonathan Nieder wrote:
Show 7 quoted lines
> apparently shortlog does not default to HEAD when stdin is not a
> tty.
> 
> Possible fixes:
> 
>  - document the current unfriendly behavior
>  - default to HEAD when input is empty
Here’s the uncontroversial half.

Patch 1 is new: it explains why scripts that mean HEAD need to explicitly say so. The remaining patches are just like before, except tests pass a HEAD arg now. Sorry about the breakage, and thanks for catching it.

Jonathan Nieder (4):
  Documentation/shortlog: scripted users should not rely on implicit
    HEAD
  t4201 (shortlog): guard setup with test_expect_success
  t4201 (shortlog): Test output format with multiple authors
  shortlog: Document and test --format option
Will Palmer (1):
  pretty: Respect --abbrev option
 Documentation/git-shortlog.txt |   15 +++++-
 builtin/shortlog.c             |    3 +-
 pretty.c                       |    7 ++-
 shortlog.h                     |    1 +
 t/t4201-shortlog.sh            |  116 +++++++++++++++++++++++++++++++--------
 t/t6006-rev-list-format.sh     |   19 +++++++
 6 files changed, 132 insertions(+), 29 deletions(-)
Previous: Jonathan NiederNext: Jonathan Nieder
Message 9 of 16 in “What's cooking in git.git (May 2010, #01; Sun, 2)”
  1. Junio C HamanoMay 2, 2010
  2. Johannes SixtMay 2, 2010
  3. 1/2 Have set_try_to_free_routine return the previous routineJohannes Sixt, May 8, 2010
  4. 2/2 Do not call release_pack_memory in malloc wrappers when GIT_TRACE is usedJohannes Sixt, May 8, 2010
  5. Jakub NarebskiMay 3, 2010
  6. Will PalmerMay 3, 2010
  7. jn/shortlog (Re: What's cooking in git.git (May 2010, #01; Sun, 2))Jonathan Nieder, May 4, 2010
  8. Jonathan NiederMay 4, 2010
  9. 0/5 jn/shortlogJonathan Nieder, May 4, 2010
  10. 1/5 Documentation/shortlog: scripted users should not rely on implicit HEADJonathan Nieder, May 4, 2010
  11. 2/5 t4201 (shortlog): guard setup with test_expect_successJonathan Nieder, May 4, 2010
  12. 3/5 t4201 (shortlog): Test output format with multiple authorsJonathan Nieder, May 4, 2010
  13. 4/5 shortlog: Document and test --format optionJonathan Nieder, May 4, 2010
  14. 5/5 pretty: Respect --abbrev optionJonathan Nieder, May 4, 2010
  15. Jonathan NiederMay 4, 2010
  16. Clemens BuchacherMay 8, 2010

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.