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

[PATCH 1/2] doc/git-repack: fix syntax for `-g` shorthand option

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 16, 2023, 07:19 UTC
Message-ID
<bee3cfbe359c62cfeb9803917d661fbba54e404b.1697440686.git.ps@pks.im>
In-Reply-To
<cover.1697440686.git.ps@pks.im>

The `-g` switch is a shorthand for `--geometric=` and allows the user to specify the geometric. The documentation is wrong though and indicates that the syntax for the shorthand is `-g=<factor>`. In fact though, the option must be specified without the equals sign via `-g<factor>`.

Fix the syntax accordingly.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
---
 Documentation/git-repack.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git-repack.txt b/Documentation/git-repack.txt
index 8545a32667..dfd2a59c50 100644
--- a/Documentation/git-repack.txt
+++ b/Documentation/git-repack.txt
@@ -209,7 +209,7 @@ depth is 4095.
 	Pass the `--delta-islands` option to `git-pack-objects`, see
 	linkgit:git-pack-objects[1].
 
--g=<factor>::
+-g<factor>::
 --geometric=<factor>::
 	Arrange resulting pack structure so that each successive pack
 	contains at least `<factor>` times the number of objects as the
-- 
2.42.0
Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 2 of 5 in “doc/git-repack: small fixes for geometric repacks”
  1. 0/2 doc/git-repack: small fixes for geometric repacksPatrick Steinhardt, Oct 16, 2023
  2. 1/2 doc/git-repack: fix syntax for `-g` shorthand optionPatrick Steinhardt, Oct 16, 2023
  3. 2/2 doc/git-repack: don't mention nonexistent "--unpacked" optionPatrick Steinhardt, Oct 16, 2023
  4. Taylor BlauOct 30, 2023
  5. Taylor BlauOct 30, 2023

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.