Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add compress script

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information...
commit 26b3fd01f2da98d48e628625079ad29bb4477356 1 parent e2a45fa
@felipec authored
Showing with 12 additions and 5 deletions.
  1. +4 −3 README
  2. +6 −0 compress
  3. +1 −1  fix
  4. +1 −1  trim
View
7 README
@@ -13,9 +13,6 @@ Otherwise, just
$ ./import
-You might want to run 'git gc --aggressive' to compress the repo the first
-time.
-
And if you want to fix the repo (bad commits, missing authors, etc.):
$ ./fix
@@ -23,3 +20,7 @@ And if you want to fix the repo (bad commits, missing authors, etc.):
Finally, to trim the repsitory:
$ ./trim
+
+If you want to compress the repos, run:
+
+ $ ./compress
View
6 compress
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+repos="${@-pidgin.git pidgin-fix.git pidgin-trim.git}"
+for repo in $repos; do
+ test -e "$repo" && echo "git --git-dir=$repo gc --aggressive --prune=now"
+done
View
2  fix
@@ -106,4 +106,4 @@ system "git filter-branch --env-filter '#{env_filter}' --msg-filter '#{msg_filte
system 'git remote rm origin'
system 'rm -rf pidgin-fix.git/refs/original'
system 'git reflog expire --expire=now --all'
-system 'git gc --aggressive --prune=now'
+system 'git prune --expire=now'
View
2  trim
@@ -62,4 +62,4 @@ end
# cleanup old stuff
system 'rm -rf refs/original'
system 'git reflog expire --expire=now --all'
-system 'git gc --aggressive --prune=now'
+system 'git prune --expire=now'
Please sign in to comment.
Something went wrong with that request. Please try again.