0

I cloned a new repository and changed one line. The problem is that when I went to git diff, the diff also shows lines like the example below, where I haven't touched the line at all, and the diff shows... the same thing before and after the change? What's going on? How can I stop this?

@@ -22,8 +22,8 @@ class EventSpider(scrapy.Spider):

         next_page_links = response.xpath('//b[contains(text(), "Page")]/following-sibling::a/@href').getall()
         yield from response.follow_all(next_page_links, self.parse)
-
-    def parse_event(self, response):
+
+    def parse_event(self, response):
         def extract_from_xpath(query):
             return response.xpath(query).get(default='').strip()
wheeeee
  • 1,046
  • 2
  • 14
  • 33

1 Answers1

-1

Try setting the color for whitespace... something like this:

git config color.diff.whitespace "red reverse"
Ryan
  • 2,073
  • 1
  • 19
  • 33