Feature #11414
Ignore whitespace when using GIT
Status: | New | Start date: | ||
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | SCM | |||
Target version: | - | |||
Resolution: |
Description
By default, Redmine's diff reports any whitespace differences. To turn this off please edit:
/home/redmine/lib/redmine/scm/adapters/git_adapter.rb
locate the lines:
if identifier_to cmd_args << "diff" << "--no-color" << identifier_to << identifier_from else cmd_args << "show" << "--no-color" << identifier_from end
and change them to:
if identifier_to cmd_args << "diff" << "--no-color" << "-w" << identifier_to << identifier_from else cmd_args << "show" << "--no-color" << "-w" << identifier_from end
Related issues
History
#1
Updated by Etienne Massip over 10 years ago
- Category set to SCM
#2
Updated by Denny Schäfer over 10 years ago
In my opinion it should be a option under the settings point repositories.
#3
Updated by Toshi MARUYAMA over 10 years ago
- Status changed from Resolved to New
- Resolution deleted (
Fixed)
#4
Updated by Prof. Dr. YoMan over 9 years ago
+1
#5
Updated by Mathias Fischer over 8 years ago
+1 would be very helpful for code reviews
#6 Updated by Anonymous over 8 years ago
+1
In a previous version I hacked in a setting at the top of the diff page that turned on and off whitespace ignoring, like the inline versus side-by-side setting. It worked well in my case, but isn't worthy of a patch because it only worked for Subversion. Doing it properly would require passing some options down through the scm models.
#7
Updated by Toshi MARUYAMA over 6 years ago
- Related to Feature #2235: Differential: New Line changes added