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
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^!