]> git.pld-linux.org Git - packages/rpm-build-tools.git/blob - fixmerge.sh
- haskell hackage support
[packages/rpm-build-tools.git] / fixmerge.sh
1 #!/bin/sh
2
3 # Changes the order of parents and commitlog in the merge produced by git pull. It produces
4 # the nicer history with git log --first-parent
5
6 git filter-branch -f --parent-filter "tee ~/P.OUT | awk '{if(NF==4) print \$1,\$4,\$3,\$2;}'| tee -a ~/P.OUT" \
7     --msg-filter "sed 's/\(Merge branch .*\) of/\1 into/'" HEAD^!
This page took 0.097732 seconds and 3 git commands to generate.