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

Re: [PATCH v2] rev-list: add option for --pretty=format without header

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jul 13, 2021, 00:10 UTC
Message-ID
<YOzZ9Zzv+NJu7Wo8@camp.crustytoothpaste.net>
In-Reply-To
<CAP8UFD2BVba_vsXaTPkXgYDGg28xApoyDrrT2fdTddvM1_3CiA@mail.gmail.com>
On 2021-07-12 at 07:30:33, Christian Couder wrote:
Show 9 quoted lines
> Usually we use "option" instead of "argument" for the flags starting
> with "-" or "--" before the required parameter. For example:
> 
> $ git rev-list -h
> usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]
> ...
> 
> (Yeah, I agree that [OPTION] is not very consistent with what other
> commands show, which is usually "[<options>]".)
I can do that rename.
> test_pretty() accepts options like --no-commit-header, but it's only
> used without any option. So I wonder if you forgot to add a few tests
> with some options.

I originally intended to add some, but decided to remove them because the --abbrev tests fit better elsewhere. I'll remove the options.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Christian CouderNext: Jeff King
Message 7 of 9 in “rev-list: add option for --pretty without header”
  1. rev-list: add option for --pretty without headerbrian m. carlson, Jul 6, 2021
  2. Christian CouderJul 9, 2021
  3. Junio C HamanoJul 9, 2021
  4. brian m. carlsonJul 11, 2021
  5. rev-list: add option for --pretty=format without headerbrian m. carlson, Jul 11, 2021
  6. Christian CouderJul 12, 2021
  7. brian m. carlsonJul 13, 2021
  8. Jeff KingJul 12, 2021
  9. brian m. carlsonJul 13, 2021

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.