summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f01e20)
raw | patch | inline | side by side (parent: 6f01e20)
author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Tue, 29 Nov 2011 09:27:17 +0000 (09:27 +0000) | ||
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Wed, 30 Nov 2011 14:37:26 +0000 (14:37 +0000) |
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>
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>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index c190cbe23f0c67f3866311506e4c5eaf47c87e80..8d95dda953fb3eb69cb4697a78ccea8e146a7839 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
$ui_comm configure -state disabled -background gray
}
}
-if {[is_enabled multicommit]} {
+if {[is_enabled multicommit] && ![is_config_false gui.gcwarning]} {
after 1000 hint_gc
}
if {[is_enabled retcode]} {