Skip to content
This repository was archived by the owner on Dec 21, 2019. It is now read-only.

Commit a5ee01e

Browse files
committed
thanks to Leetel for pointing me in the direction of git-filter-branch. This became a one-liner now!
1 parent ff0ab95 commit a5ee01e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

git-iterate

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@
66
#
77
# Example: git-iterate 'echo `flog -s app` `flog -s spec`'
88
#
9-
10-
for i in `ruby -e 'puts %x{git log}.grep(/^commit/).map {|line| line.gsub(/commit /, "").strip }.reverse'`
11-
do
12-
git reset -q --hard $i
13-
eval $* $i
14-
done
9+
# FIXME: unsafe regex
10+
git-filter-branch --tree-filter "$1" | sed s/Rewrite.*\)//g

0 commit comments

Comments
 (0)