Feature #11414

Ignore whitespace when using GIT

Added by Jaroslaw Bogusz 10 months ago. Updated 10 days ago.

Status:NewStart date:
Priority:LowDue 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

Related to Patch #1476: Ignore whitespace when using SVN (requires installation o... New 2008-06-16
Related to Feature #14034: Ability to choose diff algorithm type for git (patience, ... New

History

#1 Updated by Etienne Massip 10 months ago

  • Category set to SCM

#2 Updated by Denny Schäfer 7 months ago

In my opinion it should be a option under the settings point repositories.

#3 Updated by Toshi MARUYAMA 7 months ago

  • Status changed from Resolved to New
  • Resolution deleted (Fixed)

#4 Updated by Prof. Dr. YoMan 10 days ago

+1

Also available in: Atom PDF