author | Junio C Hamano <junkio@cox.net> | |
Sat, 9 Jul 2005 02:27:15 +0000 (19:27 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Sat, 9 Jul 2005 02:48:44 +0000 (19:48 -0700) | ||
commit | 1855c044629a02488baa1bd25ae45341da33bd4e | |
tree | ae17bae47dfcd4c19c91c22856f6337c5fb8886a | tree | snapshot |
parent | ed616049d76a59df10a9064f8883009ab1329da4 | commit | diff |
[PATCH] format-patch: fix skipping of blank-lines
If it is fed a commit with more than one leading blank lines,
the sed scripts git-format-patch-script used looped forever.
Using git-stripspace upfront makes the sed script somewhat
simpler to work around this problem.
Also use git-rev-parse so that we can say
$ git-format-patch-script HEAD^^^^
to prepare the latest four patches for e-mail submission.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
If it is fed a commit with more than one leading blank lines,
the sed scripts git-format-patch-script used looped forever.
Using git-stripspace upfront makes the sed script somewhat
simpler to work around this problem.
Also use git-rev-parse so that we can say
$ git-format-patch-script HEAD^^^^
to prepare the latest four patches for e-mail submission.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
git-format-patch-script | diff | blob | history |