[PATCH] format-patch: fix skipping of blank-lines (take 2)

2005-07-08 Thread Junio C Hamano
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^^

Re: [PATCH] format-patch: fix skipping of blank-lines

2005-07-08 Thread Linus Torvalds
On Fri, 8 Jul 2005, Junio C Hamano wrote: > > If it is fed a commit with more than one leading blank lines, > the sed scripts git-format-patch-script used looped forever. > This patch fixes it. How about using "git-stripspace"? That's what it's there for. It strips whitespace from the end of lin

[PATCH] format-patch: fix skipping of blank-lines

2005-07-08 Thread Junio C Hamano
If it is fed a commit with more than one leading blank lines, the sed scripts git-format-patch-script used looped forever. This patch fixes it. Signed-off-by: Junio C Hamano <[EMAIL PROTECTED]> --- git-format-patch-script | 18 +- 1 files changed, 13 insertions(+), 5 deletions(