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

Re: [PATCH 3/4] log --count: added test

From
Remi Galan Alfonso <remi.galan-alfonso@ensimag.grenoble-inp.fr>
Date
Jul 2, 2015, 09:09 UTC
Message-ID
<134930107.140053.1435828168932.JavaMail.zimbra@ensimag.grenoble-inp.fr>
In-Reply-To
<1435815536-30611-3-git-send-email-lawrencesiebert@gmail.com>
Hi Lawrence,
Lawrence Siebert <lawrencesiebert@gmail.com> writes:
> +test_expect_success 'log --count' '
> +        git log --count HEAD > actual &&
> +        git        rev-list --count HEAD > expect &&

Why the huge space here between 'git' and 'rev-list'? Also no space after the redirection ('>'), it should be '>actual' and '>expect'.

> +        test_cmp expect actual
> +'        
> +        

In the mail I see some trailing whitespace after the last two lines. I can't apply it myself before some time, so I can't see if 'git am' warns me about trailing whitespace. You can use 'git log --check' to see the trailing whitespace in your commits. I'll look if I see some trailing whitespace in your other parts of the patch but I might miss some.

Rémi
Previous: Lawrence SiebertNext: Lawrence Siebert
Message 6 of 10 in “list-object: add get_commit_count function”
  1. 1/4 list-object: add get_commit_count functionLawrence Siebert, Jul 2, 2015
  2. 2/4 log: add --count option to git logLawrence Siebert, Jul 2, 2015
  3. Remi Galan AlfonsoJul 2, 2015
  4. Lawrence SiebertJul 2, 2015
  5. 3/4 log --count: added testLawrence Siebert, Jul 2, 2015
  6. Remi Galan AlfonsoJul 2, 2015
  7. 4/4 git-log: update man documentation for --countLawrence Siebert, Jul 2, 2015
  8. Remi Galan AlfonsoJul 2, 2015
  9. Junio C HamanoJul 3, 2015
  10. Jeff KingJul 3, 2015

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.