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

[PATCH 26/78] config.txt: move gc.* to a separate file

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Oct 27, 2018, 06:22 UTC
Message-ID
<20181027062351.30446-27-pclouds@gmail.com>
In-Reply-To
<20181027062351.30446-1-pclouds@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 Documentation/config.txt    | 109 +-----------------------------------
 Documentation/config/gc.txt | 108 +++++++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+), 108 deletions(-)
 create mode 100644 Documentation/config/gc.txt
diff --git a/Documentation/config.txt b/Documentation/config.txt
index f70f95d5cf..dee012a5d5 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -333,114 +333,7 @@ include::config/filter.txt[]
 
 include::config/fsck.txt[]
 
-gc.aggressiveDepth::
-	The depth parameter used in the delta compression
-	algorithm used by 'git gc --aggressive'.  This defaults
-	to 50.
-
-gc.aggressiveWindow::
-	The window size parameter used in the delta compression
-	algorithm used by 'git gc --aggressive'.  This defaults
-	to 250.
-
-gc.auto::
-	When there are approximately more than this many loose
-	objects in the repository, `git gc --auto` will pack them.
-	Some Porcelain commands use this command to perform a
-	light-weight garbage collection from time to time.  The
-	default value is 6700.  Setting this to 0 disables it.
-
-gc.autoPackLimit::
-	When there are more than this many packs that are not
-	marked with `*.keep` file in the repository, `git gc
-	--auto` consolidates them into one larger pack.  The
-	default	value is 50.  Setting this to 0 disables it.
-
-gc.autoDetach::
-	Make `git gc --auto` return immediately and run in background
-	if the system supports it. Default is true.
-
-gc.bigPackThreshold::
-	If non-zero, all packs larger than this limit are kept when
-	`git gc` is run. This is very similar to `--keep-base-pack`
-	except that all packs that meet the threshold are kept, not
-	just the base pack. Defaults to zero. Common unit suffixes of
-	'k', 'm', or 'g' are supported.
-+
-Note that if the number of kept packs is more than gc.autoPackLimit,
-this configuration variable is ignored, all packs except the base pack
-will be repacked. After this the number of packs should go below
-gc.autoPackLimit and gc.bigPackThreshold should be respected again.
-
-gc.writeCommitGraph::
-	If true, then gc will rewrite the commit-graph file when
-	linkgit:git-gc[1] is run. When using linkgit:git-gc[1]
-	'--auto' the commit-graph will be updated if housekeeping is
-	required. Default is false. See linkgit:git-commit-graph[1]
-	for details.
-
-gc.logExpiry::
-	If the file gc.log exists, then `git gc --auto` will print
-	its content and exit with status zero instead of running
-	unless that file is more than 'gc.logExpiry' old.  Default is
-	"1.day".  See `gc.pruneExpire` for more ways to specify its
-	value.
-
-gc.packRefs::
-	Running `git pack-refs` in a repository renders it
-	unclonable by Git versions prior to 1.5.1.2 over dumb
-	transports such as HTTP.  This variable determines whether
-	'git gc' runs `git pack-refs`. This can be set to `notbare`
-	to enable it within all non-bare repos or it can be set to a
-	boolean value.  The default is `true`.
-
-gc.pruneExpire::
-	When 'git gc' is run, it will call 'prune --expire 2.weeks.ago'.
-	Override the grace period with this config variable.  The value
-	"now" may be used to disable this grace period and always prune
-	unreachable objects immediately, or "never" may be used to
-	suppress pruning.  This feature helps prevent corruption when
-	'git gc' runs concurrently with another process writing to the
-	repository; see the "NOTES" section of linkgit:git-gc[1].
-
-gc.worktreePruneExpire::
-	When 'git gc' is run, it calls
-	'git worktree prune --expire 3.months.ago'.
-	This config variable can be used to set a different grace
-	period. The value "now" may be used to disable the grace
-	period and prune `$GIT_DIR/worktrees` immediately, or "never"
-	may be used to suppress pruning.
-
-gc.reflogExpire::
-gc.<pattern>.reflogExpire::
-	'git reflog expire' removes reflog entries older than
-	this time; defaults to 90 days. The value "now" expires all
-	entries immediately, and "never" suppresses expiration
-	altogether. With "<pattern>" (e.g.
-	"refs/stash") in the middle the setting applies only to
-	the refs that match the <pattern>.
-
-gc.reflogExpireUnreachable::
-gc.<pattern>.reflogExpireUnreachable::
-	'git reflog expire' removes reflog entries older than
-	this time and are not reachable from the current tip;
-	defaults to 30 days. The value "now" expires all entries
-	immediately, and "never" suppresses expiration altogether.
-	With "<pattern>" (e.g. "refs/stash")
-	in the middle, the setting applies only to the refs that
-	match the <pattern>.
-
-gc.rerereResolved::
-	Records of conflicted merge you resolved earlier are
-	kept for this many days when 'git rerere gc' is run.
-	You can also use more human-readable "1.month.ago", etc.
-	The default is 60 days.  See linkgit:git-rerere[1].
-
-gc.rerereUnresolved::
-	Records of conflicted merge you have not resolved are
-	kept for this many days when 'git rerere gc' is run.
-	You can also use more human-readable "1.month.ago", etc.
-	The default is 15 days.  See linkgit:git-rerere[1].
+include::config/gc.txt[]
 
 include::gitcvs-config.txt[]
 
diff --git a/Documentation/config/gc.txt b/Documentation/config/gc.txt
new file mode 100644
index 0000000000..c6fbb8a96f
--- /dev/null
+++ b/Documentation/config/gc.txt
@@ -0,0 +1,108 @@
+gc.aggressiveDepth::
+	The depth parameter used in the delta compression
+	algorithm used by 'git gc --aggressive'.  This defaults
+	to 50.
+
+gc.aggressiveWindow::
+	The window size parameter used in the delta compression
+	algorithm used by 'git gc --aggressive'.  This defaults
+	to 250.
+
+gc.auto::
+	When there are approximately more than this many loose
+	objects in the repository, `git gc --auto` will pack them.
+	Some Porcelain commands use this command to perform a
+	light-weight garbage collection from time to time.  The
+	default value is 6700.  Setting this to 0 disables it.
+
+gc.autoPackLimit::
+	When there are more than this many packs that are not
+	marked with `*.keep` file in the repository, `git gc
+	--auto` consolidates them into one larger pack.  The
+	default	value is 50.  Setting this to 0 disables it.
+
+gc.autoDetach::
+	Make `git gc --auto` return immediately and run in background
+	if the system supports it. Default is true.
+
+gc.bigPackThreshold::
+	If non-zero, all packs larger than this limit are kept when
+	`git gc` is run. This is very similar to `--keep-base-pack`
+	except that all packs that meet the threshold are kept, not
+	just the base pack. Defaults to zero. Common unit suffixes of
+	'k', 'm', or 'g' are supported.
++
+Note that if the number of kept packs is more than gc.autoPackLimit,
+this configuration variable is ignored, all packs except the base pack
+will be repacked. After this the number of packs should go below
+gc.autoPackLimit and gc.bigPackThreshold should be respected again.
+
+gc.writeCommitGraph::
+	If true, then gc will rewrite the commit-graph file when
+	linkgit:git-gc[1] is run. When using linkgit:git-gc[1]
+	'--auto' the commit-graph will be updated if housekeeping is
+	required. Default is false. See linkgit:git-commit-graph[1]
+	for details.
+
+gc.logExpiry::
+	If the file gc.log exists, then `git gc --auto` will print
+	its content and exit with status zero instead of running
+	unless that file is more than 'gc.logExpiry' old.  Default is
+	"1.day".  See `gc.pruneExpire` for more ways to specify its
+	value.
+
+gc.packRefs::
+	Running `git pack-refs` in a repository renders it
+	unclonable by Git versions prior to 1.5.1.2 over dumb
+	transports such as HTTP.  This variable determines whether
+	'git gc' runs `git pack-refs`. This can be set to `notbare`
+	to enable it within all non-bare repos or it can be set to a
+	boolean value.  The default is `true`.
+
+gc.pruneExpire::
+	When 'git gc' is run, it will call 'prune --expire 2.weeks.ago'.
+	Override the grace period with this config variable.  The value
+	"now" may be used to disable this grace period and always prune
+	unreachable objects immediately, or "never" may be used to
+	suppress pruning.  This feature helps prevent corruption when
+	'git gc' runs concurrently with another process writing to the
+	repository; see the "NOTES" section of linkgit:git-gc[1].
+
+gc.worktreePruneExpire::
+	When 'git gc' is run, it calls
+	'git worktree prune --expire 3.months.ago'.
+	This config variable can be used to set a different grace
+	period. The value "now" may be used to disable the grace
+	period and prune `$GIT_DIR/worktrees` immediately, or "never"
+	may be used to suppress pruning.
+
+gc.reflogExpire::
+gc.<pattern>.reflogExpire::
+	'git reflog expire' removes reflog entries older than
+	this time; defaults to 90 days. The value "now" expires all
+	entries immediately, and "never" suppresses expiration
+	altogether. With "<pattern>" (e.g.
+	"refs/stash") in the middle the setting applies only to
+	the refs that match the <pattern>.
+
+gc.reflogExpireUnreachable::
+gc.<pattern>.reflogExpireUnreachable::
+	'git reflog expire' removes reflog entries older than
+	this time and are not reachable from the current tip;
+	defaults to 30 days. The value "now" expires all entries
+	immediately, and "never" suppresses expiration altogether.
+	With "<pattern>" (e.g. "refs/stash")
+	in the middle, the setting applies only to the refs that
+	match the <pattern>.
+
+gc.rerereResolved::
+	Records of conflicted merge you resolved earlier are
+	kept for this many days when 'git rerere gc' is run.
+	You can also use more human-readable "1.month.ago", etc.
+	The default is 60 days.  See linkgit:git-rerere[1].
+
+gc.rerereUnresolved::
+	Records of conflicted merge you have not resolved are
+	kept for this many days when 'git rerere gc' is run.
+	You can also use more human-readable "1.month.ago", etc.
+	The default is 15 days.  See linkgit:git-rerere[1].
-- 
2.19.1.647.g708186aaf9
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 27 of 80 in “nd/config-split reroll”
  1. 00/78 nd/config-split rerollNguyễn Thái Ngọc Duy, Oct 27, 2018
  2. 01/78 Update makefile in preparation for Documentation/config/*.txtNguyễn Thái Ngọc Duy, Oct 27, 2018
  3. 02/78 config.txt: move advice.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  4. 04/78 config.txt: move add.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  5. 05/78 config.txt: move alias.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  6. 03/78 config.txt: move core.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  7. 06/78 config.txt: move am.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  8. 07/78 config.txt: move apply.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  9. 08/78 config.txt: move blame.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  10. 09/78 config.txt: move branch.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  11. 11/78 config.txt: move checkout.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  12. 12/78 config.txt: move clean.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  13. 10/78 config.txt: move browser.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  14. 14/78 config.txt: move column.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  15. 13/78 config.txt: move color.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  16. 15/78 config.txt: move commit.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  17. 16/78 config.txt: move credential.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  18. 17/78 config.txt: move completion.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  19. 18/78 config.txt: move diff-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  20. 20/78 config.txt: move fastimport.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  21. 19/78 config.txt: move difftool.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  22. 21/78 config.txt: move fetch-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  23. 22/78 config.txt: move filter.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  24. 23/78 config.txt: move format-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  25. 24/78 config.txt: move fmt-merge-msg-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  26. 25/78 config.txt: move fsck.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  27. 26/78 config.txt: move gc.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  28. 27/78 config.txt: move gitcvs-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  29. 28/78 config.txt: move gitweb.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  30. 29/78 config.txt: move grep.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  31. 31/78 config.txt: move gui-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  32. 33/78 config.txt: move help.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  33. 32/78 config.txt: move guitool.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  34. 34/78 config.txt: move ssh.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  35. 30/78 config.txt: move gpg.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  36. 35/78 config.txt: move http.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  37. 36/78 config.txt: move i18n.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  38. 37/78 git-imap-send.txt: move imap.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  39. 41/78 config.txt: move interactive.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  40. 39/78 config.txt: move init.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  41. 43/78 config.txt: move mailinfo.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  42. 44/78 config.txt: move mailmap.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  43. 45/78 config.txt: move man.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  44. 46/78 config.txt: move merge-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  45. 40/78 config.txt: move instaweb.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  46. 47/78 config.txt: move mergetool.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  47. 48/78 config.txt: move notes.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  48. 50/78 config.txt: move pager.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  49. 49/78 config.txt: move pack.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  50. 53/78 config.txt: move pull-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  51. 52/78 config.txt: move protocol.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  52. 54/78 config.txt: move push-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  53. 55/78 config.txt: move rebase-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  54. 56/78 config.txt: move receive-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  55. 57/78 config.txt: move remote.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  56. 51/78 config.txt: move pretty.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  57. 59/78 config.txt: move repack.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  58. 58/78 config.txt: move remotes.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  59. 60/78 config.txt: move rerere.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  60. 62/78 config.txt: move sendemail-config.txt to config/Nguyễn Thái Ngọc Duy, Oct 27, 2018
  61. 63/78 config.txt: move sequencer.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  62. 64/78 config.txt: move showBranch.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  63. 65/78 config.txt: move splitIndex.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  64. 61/78 config.txt: move reset.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  65. 67/78 config.txt: move stash.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  66. 68/78 config.txt: move submodule.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  67. 69/78 config.txt: move tag.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  68. 66/78 config.txt: move status.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  69. 70/78 config.txt: move transfer.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  70. 72/78 config.txt: move uploadpack.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  71. 73/78 config.txt: move url.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  72. 71/78 config.txt: move uploadarchive.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  73. 75/78 config.txt: move versionsort.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  74. 74/78 config.txt: move user.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  75. 76/78 config.txt: move web.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  76. 78/78 config.txt: remove config/dummy.txtNguyễn Thái Ngọc Duy, Oct 27, 2018
  77. 77/78 config.txt: move worktree.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  78. 42/78 config.txt: move log.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  79. 38/78 config.txt: move index.* to a separate fileNguyễn Thái Ngọc Duy, Oct 27, 2018
  80. Junio C HamanoOct 29, 2018

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.