summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-07-09 15:08:46 -0400
committerColin Walters <walters@verbum.org>2010-07-09 15:08:46 -0400
commita6350c7b9de8993d41970eb7099f5c265f29e240 (patch)
tree2cd745502dcc8065e78d38cb52c75c357dad6dc5
parent056b7cb878817497f11db5164687ea13cfbeb1aa (diff)
downloadhomegit-MOVED-TO-GNOME-a6350c7b9de8993d41970eb7099f5c265f29e240.zip
homegit-MOVED-TO-GNOME-a6350c7b9de8993d41970eb7099f5c265f29e240.tar.gz
homegit-MOVED-TO-GNOME-a6350c7b9de8993d41970eb7099f5c265f29e240.tar.xz
Better handle deleted files
-rwxr-xr-xbin/git-un-diff-whitespace2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/git-un-diff-whitespace b/bin/git-un-diff-whitespace
index 0431c80..6338a47 100755
--- a/bin/git-un-diff-whitespace
+++ b/bin/git-un-diff-whitespace
@@ -4,7 +4,7 @@ import os,sys,re,subprocess
hunk_re = re.compile(r'^@@ -\d+,\d+ \+(\d+),(\d+) @@')
ws_re = re.compile(r'^(.*?)[ \t]+$')
-file_re = re.compile(r'^\+\+\+ b/(.+)')
+file_re = re.compile(r'^\-\-\- b/(.+)')
def strip_whitespace_regions(filename, hunks):
if len(hunks) == 0: