ligf@hot:~/bin$ git format-patch 725dba73a866e38ddc9f09a00e42026c47a7e465...e419406f00c2c44814b4f082572e24349a299ae5 --start-number 4 -o xdotool
xdotool/0004-asdfasdf.patch
ligf@hot:~/bin$ git format-patch e419406f00c2c44814b4f082572e24349a299ae5...725dba73a866e38ddc9f09a00e42026c47a7e465 --start-number 1 -o xdotool
xdotool/0001-asdfasdf.patch
ligf@hot:~/bin$ diff xdotool/0004-asdfasdf.patch xdotool/0001-asdfasdf.patch
参考http://blog.csdn.net/while0/article/details/11633231
patch -p1 < xx.patch //这个用到的是text
git diff -a commit commit //这个才能被patch所用,-a==--text
diff -Nur xxx xxxb