Commits

Anonymous committed d7b1a1d

git-prune: prune redundant packs

Signed-off-by: Junio C Hamano <junkio@cox.net>

Comments (0)

Files changed (1)

 }
 
 git-prune-packed $dryrun
+
+redundant=$(git-pack-redundant --all)
+if test "" != "$redundant"
+then
+	if test "" = $dryrun
+	then
+		echo "$redundant" | xargs rm -f
+	else
+		echo rm -f "$redundant"
+	fi
+fi