More moving stuff around
This commit is contained in:
19
dev/git/git-on-tree
Executable file
19
dev/git/git-on-tree
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
start_rev=$1
|
||||
end_rev=$2
|
||||
cmd=$3
|
||||
|
||||
|
||||
function main()
|
||||
{
|
||||
revs=`git rev-list --reverse ${start_rev}..${end_rev}`
|
||||
for rev in $revs; do
|
||||
git checkout --quiet $rev
|
||||
eval $cmd
|
||||
git reset --hard --quiet
|
||||
done
|
||||
git checkout ${end_rev}
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user