プロジェクト

全般

プロフィール

Vote #72227

未完了

Ignore whitespace when using GIT

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
低め
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
0
issue_org_id:
11414
author_id:
59759
assigned_to_id:
0
comments:
7
status_id:
1
tracker_id:
2
plus1:
3
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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

journals

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

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1 would be very helpful for code reviews
--------------------------------------------------------------------------------
+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.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,1476,Ignore whitespace when using SVN (requires installation of gnu diff)
relates,New,14034,Ability to choose diff algorithm type for git (patience, histogram)
relates,New,2235,Differential: New Line changes

Admin Redmine さんが約4年前に更新

  • カテゴリSCM_3 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0