Skip to content

Instantly share code, notes, and snippets.

@ggreer
Created July 14, 2011 17:31
Show Gist options
  • Select an option

  • Save ggreer/1082944 to your computer and use it in GitHub Desktop.

Select an option

Save ggreer/1082944 to your computer and use it in GitHub Desktop.
ggreer@carbon:~/Library/Application Support/TextMate/Bundles/Git.tmbundle$ git diff
diff --git a/Support/lib/git.rb b/Support/lib/git.rb
index 5e8de13..5192953 100644
--- a/Support/lib/git.rb
+++ b/Support/lib/git.rb
@@ -307,6 +307,9 @@ module SCM
file = make_local_path(file_path)
args = [file]
args << revision unless revision.nil? || revision.empty?
+ # Ignore whitespace when comparing the parent's version and
+ # the child's to find where the lines came from.
+ args << '-w'
output = command("annotate", *args)
if output.match(/^fatal:/)
puts output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment