$ git format-patch -n and $ git format-patch HEAD~n

472 views Asked by At

I’ve noticed there’re some differences between

$ git format-patch –n

and

$ git format-patch HEAD~n

According to the documentation: “-n Prepare patches from the topmost commits.” So I think these two commands should lead to the same result. But actually they’re not, especially when n is large, say 10 or 20, and in a source that exists plenty of merges. Could somebody provide any suggestion? Thanks in advance!

0

There are 0 answers