author | Ramkumar Ramachandra <artagnon@gmail.com> | |
Fri, 27 Aug 2010 20:28:16 +0000 (01:58 +0530) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 27 Aug 2010 23:47:45 +0000 (16:47 -0700) | ||
commit | 2c642ed8668745271a714f0a672dbfcd6b0a6fa8 | |
tree | fa9ad23593a89c3cd89ec8ebd04535a94acb1345 | tree | snapshot |
parent | 6426f2d2afb42e51dac901ff666c3296424c6f5c | commit | diff |
format-patch: Don't go over merge commits
If the topmost three commits in a branch were merge commits, 'git
format-patch -3' used to output nothing. Since Git can't prepare
patches out of merge commits anyway, don't go over them in the first
place. 'git format-patch -3' now prepares three patches from the
topmost three commits without counting merge commits. Also add a
corresponding test in t4014-format-patch and update documentation.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If the topmost three commits in a branch were merge commits, 'git
format-patch -3' used to output nothing. Since Git can't prepare
patches out of merge commits anyway, don't go over them in the first
place. 'git format-patch -3' now prepares three patches from the
topmost three commits without counting merge commits. Also add a
corresponding test in t4014-format-patch and update documentation.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-format-patch.txt | diff | blob | history | |
builtin/log.c | diff | blob | history | |
t/t4014-format-patch.sh | diff | blob | history |