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

Re: [PATCH] Documentation: simplify synopsis of git-repack(1)

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 13, 2022, 19:00 UTC
Message-ID
<xmqqsfrlvfs8.fsf@gitster.g>
In-Reply-To
<20220312113136.26716-1-bagasdotme@gmail.com>
Bagas Sanjaya <bagasdotme@gmail.com> writes:
> Simplify SYNOPSIS section to only mention [<options>...] placeholder.
> Redundant options list can now be avoided for aesthetic and clarity.

The "git cmd --help" output is meant to be readable and useful, so clarity is good, but I do not know much about aesthetics.

More importantly, the above does not answer a lot more important question. Is it just loss of duplicated information that this commit brings in? Isn't the motivation that "not all options are listed in SYNOPSIS section, and/or some options listed there are not described in the body text and are not supported"? And instead of trying to keep them in sync, the author chose to simplify SYNOPSIS and have readers look options up in the body text, no? These two would make a good pair of "what problem do we solve?" and "how we choose to solve it?".

>  [verse]
> -'git repack' [-a] [-A] [-d] [-f] [-F] [-l] [-n] [-q] [-b] [-m] [--window=<n>] [--depth=<n>] [--threads=<n>] [--keep-pack=<pack-name>] [--write-midx]
> +'git repack' [<options>...]

Unlike commands with multiple "operation modes", "repack" does one thing and only one thing, so a single-liner "git repack <options>" may work well.

Previous: Bagas SanjayaNext: Bagas Sanjaya
Message 2 of 5 in “Documentation: simplify synopsis of git-repack(1)”
  1. Documentation: simplify synopsis of git-repack(1)Bagas Sanjaya, Mar 12, 2022
  2. Junio C HamanoMar 13, 2022
  3. Bagas SanjayaMar 22, 2022
  4. Shaoxuan YuanMar 22, 2022
  5. Ævar Arnfjörð BjarmasonMar 22, 2022

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.