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 <patthoyts@users.sourceforge.net>
Pat Thoyts committed
Nov 29, 2011 at 09:27 UTC
af867683345838f1adc606618e873ae4387a3c81
1 file changed
+1
-1
git-gui.sh
+1
-1
@@ -3894,7 +3894,7 @@ after 1 {
3894
$ui_comm configure -state disabled -background gray
3895
}
3896
}
3897
-if {[is_enabled multicommit]} {
3897
+if {[is_enabled multicommit] && ![is_config_false gui.gcwarning]} {
3898
after 1000 hint_gc
3899
}
3900
if {[is_enabled retcode]} {