summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 51e7e56)
raw | patch | inline | side by side (parent: 51e7e56)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 20 Jan 2007 23:38:12 +0000 (18:38 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 07:54:16 +0000 (02:54 -0500) |
Now that git 1.5.0-rc1 and later has a 'git gc' command which performs
all important repository management activites (including reflog pruning,
repacking local objects, unnecessary loose object pruning and rerere cache
expiration) we should run 'gc' when the user wants us to cleanup their
object database for them.
I think the name 'gc' is horrible for a GUI application like git-gui,
so I'm labeling the menu action 'Compress Database' instead. Hopefully
this will provide some clue to the user about what the action does.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
all important repository management activites (including reflog pruning,
repacking local objects, unnecessary loose object pruning and rerere cache
expiration) we should run 'gc' when the user wants us to cleanup their
object database for them.
I think the name 'gc' is horrible for a GUI application like git-gui,
so I'm labeling the menu action 'Compress Database' instead. Hopefully
this will provide some clue to the user about what the action does.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui | patch | blob | history |
index 0c88e4c7c32edffe0f4bef5e7216d5796b0b9dc9..95c922b21ee27b320e19efa26b524e35eb867211 100755 (executable)
--- a/git-gui
+++ b/git-gui
}
}
-proc do_repack {} {
- set w [new_console {repack} \
- {Repacking the object database}]
- set cmd [list git repack]
- lappend cmd -a
- lappend cmd -d
- console_exec $w $cmd
+proc do_gc {} {
+ set w [new_console {gc} {Compressing the object database}]
+ console_exec $w {git gc}
}
proc do_fsck_objects {} {
.mbar.repository add separator
if {!$single_commit} {
- .mbar.repository add command -label {Repack Database} \
- -command do_repack \
+ .mbar.repository add command -label {Compress Database} \
+ -command do_gc \
-font font_ui
.mbar.repository add command -label {Verify Database} \