[PATCH] patch: match 'diff --git a/' instead of 'diff --git'

Brendan Cully brendan at kublai.com
Fri Mar 22 17:50:10 CDT 2013


On Friday, 22 March 2013 at 17:46, Sean Farley wrote:
> # HG changeset patch
> # User Sean Farley <sean.michael.farley at gmail.com>
> # Date 1363991226 18000
> #      Fri Mar 22 17:27:06 2013 -0500
> # Node ID 8e1fe4a88e89f8aff8d781b787c2d02053ef6bcc
> # Parent  ac0336471ba766cc3c1234473e75d4478819e50d
> patch: match 'diff --git a/' instead of 'diff --git'
> 
> This fixes a traceback when trying to email a patch that happens to have
> 'diff --git' at the beginning of a line in the description as this patch
> did:
> 
> http://markmail.org/message/wxpgowxd7ucxygwe

What happens if the description contains a line starting with

diff --git a/

?


More information about the Mercurial-devel mailing list