Skip to content

Commit af86768

Browse files
committed
git-gui: added config gui.gcwarning to disable the gc hint message
On startup in multicommit mode git-gui checks to see if the repository has a lot of objects. If so it shows a dialog suggesting gc be run. This adds 'gui.gcwarning' as a control config variable to allow this to be disabled. The default is true (the warning is shown). Setting this false will prevent the check being done. Signed-off-by: Pat Thoyts <[email protected]>
1 parent 6f01e20 commit af86768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-gui.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3894,7 +3894,7 @@ after 1 {
38943894
$ui_comm configure -state disabled -background gray
38953895
}
38963896
}
3897-
if {[is_enabled multicommit]} {
3897+
if {[is_enabled multicommit] && ![is_config_false gui.gcwarning]} {
38983898
after 1000 hint_gc
38993899
}
39003900
if {[is_enabled retcode]} {

0 commit comments

Comments
 (0)