summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-gui13
1 files changed, 13 insertions, 0 deletions
diff --git a/git-gui b/git-gui
index d5738baf10..2aa82781e9 100755
--- a/git-gui
+++ b/git-gui
@@ -1954,6 +1954,15 @@ proc do_repack {} {
console_exec $w $cmd
}
+proc do_fsck_objects {} {
+ set w [new_console "verify" "Verifying the object database"]
+ set cmd [list git fsck-objects]
+ lappend cmd --full
+ lappend cmd --cache
+ lappend cmd --strict
+ console_exec $w $cmd
+}
+
set is_quitting 0
proc do_quit {} {
@@ -2610,6 +2619,10 @@ if {!$single_commit} {
-command do_repack \
-font font_ui
+ .mbar.project add command -label {Verify Database} \
+ -command do_fsck_objects \
+ -font font_ui
+
if {$tcl_platform(platform) eq {windows}} {
.mbar.project add command \
-label {Create Desktop Icon} \