# [PATCH] config: document 'gui.GCWarning'

3 messages from 2025-12-08 to 2025-12-16. Participants: Matthew Hughes, Kristoffer Haugsbakk.
Thread: https://gitlist.dev/t/64598

## Matthew Hughes, 2025-12-08 19:04

Subject: [PATCH] config: document 'gui.GCWarning'
Message-ID: <20251208190400.64920-1-matthewhughes934@gmail.com>
URL: https://gitlist.dev/e/20251208190400.64920-1-matthewhughes934%40gmail.com

```
While investigating the config options set by 'scalar' I noticed this
one wasn't documented.

Signed-off-by: Matthew Hughes <matthewhughes934@gmail.com>
---
 Documentation/config/gui.adoc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/config/gui.adoc b/Documentation/config/gui.adoc
index 171be774d2..1565c0af19 100644
--- a/Documentation/config/gui.adoc
+++ b/Documentation/config/gui.adoc
@@ -55,3 +55,8 @@ gui.blamehistoryctx::
 	linkgit:gitk[1] for the selected commit, when the `Show History
 	Context` menu item is invoked from 'git gui blame'. If this
 	variable is set to zero, the whole history is shown.
+
+gui.GCWarning::
+	Determines whether linkgit:git-gui[1] should prompt for garbage
+	collection when git detects a large number of loose objects in
+	the repository. The default value is "true".
-- 
2.52.0


```

## Kristoffer Haugsbakk, 2025-12-08 19:20

Subject: Re: [PATCH] config: document 'gui.GCWarning'
Message-ID: <ded2184e-595c-46f3-bba7-1bb574c2964c@app.fastmail.com>
URL: https://gitlist.dev/e/ded2184e-595c-46f3-bba7-1bb574c2964c%40app.fastmail.com
In-Reply-To: <20251208190400.64920-1-matthewhughes934@gmail.com>

```
On Mon, Dec 8, 2025, at 20:04, Matthew Hughes wrote:
> While investigating the config options set by 'scalar' I noticed this
> one wasn't documented.
>
> Signed-off-by: Matthew Hughes <matthewhughes934@gmail.com>
> ---
>[snip]

Apparently this is a continuation from here https://lore.kernel.org/git/jcqsqytuxpqwn3yhpz7fxucbuuf635q3jfgkjzauxwhrkhl7gg@g42r5kwwoknd/

```

## Matthew Hughes, 2025-12-16 20:15

Subject: Re: [PATCH] config: document 'gui.GCWarning'
Message-ID: <vglmz6lyxgnvmzfu2hysahds7n7tqewxt46vnupxm4z22z5gtm@ay43veirqo4o>
URL: https://gitlist.dev/e/vglmz6lyxgnvmzfu2hysahds7n7tqewxt46vnupxm4z22z5gtm%40ay43veirqo4o
In-Reply-To: <ded2184e-595c-46f3-bba7-1bb574c2964c@app.fastmail.com>

```
On Mon, Dec 08, 2025 at 08:20:07PM +0100, Kristoffer Haugsbakk wrote:
> Apparently this is a continuation from here https://lore.kernel.org/git/jcqsqytuxpqwn3yhpz7fxucbuuf635q3jfgkjzauxwhrkhl7gg@g42r5kwwoknd/

Indeed, thanks for linking that. Full context for the sake of anyone else: the
patchset linked above is replaced by: https://lore.kernel.org/git/pull.2010.git.1764195516.gitgitgadget@gmail.com/,
except for this patch which is stand-alone.

```
