Project

General

Profile

Actions

Feature #11414

open

Ignore whitespace when using GIT

Added by Jaroslaw Bogusz over 12 years ago. Updated over 10 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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 Redmine - Patch #1476: Ignore whitespace when using SVN (requires installation of gnu diff)New2008-06-16

Actions
Related to Redmine - Feature #14034: Ability to choose diff algorithm type for git (patience, histogram)New

Actions
Related to Redmine - Feature #2235: Differential: New Line changesNew2008-11-26

Actions
Actions

Also available in: Atom PDF