summaryrefslogtreecommitdiffstats
path: root/lib/git/lib.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-03-14 22:21:21 -0500
committerJoshua Peek <josh@joshpeek.com>2008-03-14 22:21:21 -0500
commit6c4af60f5fc5193b956a4698b604ad96ef3c51c6 (patch)
treeed7e29b8dc36208f952ace3e05a3acc36ae22b74 /lib/git/lib.rb
parent10b880b418879e662feb91ce7af98560adeaa8bb (diff)
downloadthird_party-ruby-git-6c4af60f5fc5193b956a4698b604ad96ef3c51c6.tar.gz
third_party-ruby-git-6c4af60f5fc5193b956a4698b604ad96ef3c51c6.tar.xz
third_party-ruby-git-6c4af60f5fc5193b956a4698b604ad96ef3c51c6.zip
Added gc task to base.
Diffstat (limited to 'lib/git/lib.rb')
-rw-r--r--lib/git/lib.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/git/lib.rb b/lib/git/lib.rb
index 71f960a..c9c46e0 100644
--- a/lib/git/lib.rb
+++ b/lib/git/lib.rb
@@ -517,6 +517,10 @@ module Git
command('repack', ['-a', '-d'])
end
+ def gc
+ command('gc', ['--prune', '--aggressive', '--auto'])
+ end
+
# reads a tree into the current index file
def read_tree(treeish, opts = {})
arr_opts = []