]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/git/import
git/{diff,import}: make it easier to handle manually-asembled patch emails
[plan9front.git] / sys / src / cmd / git / import
index c89d52d6b0a39af82a1a9ec54c8d18c3d3fc3b5f..1ce614a2003a0d6934ca672f58823a2908bf7487 100755 (executable)
@@ -45,7 +45,7 @@ fn apply @{
                state="body"
                next
        }
-       (state=="headers" || state=="body") && (/^diff/ || /^---[       ]*$/){
+       (state=="headers" || state=="body") && (/^diff / || /^--- /){
                state="diff"
        }
        state=="body" {