Edgewall Software
Modify

Ticket #503 (closed defect: fixed)

Opened 8 years ago

Last modified 6 years ago

Settings for controlling diff line-endings & whitespace

Reported by: jamesm@… Owned by: cmlenz
Priority: normal Milestone: 0.9
Component: version control/changeset view Version: 0.8
Severity: normal Keywords:
Cc:
Release Notes:
API Changes:

Description

It appears as though the default diff settings for Trac do not ignore whitespace and also do not ignore line endings. Sometimes the resulting diffs (depending on my changes) end up being the listing of an entire source file.


It would be nice to have some settings in trac.ini for controlling diff - like ignore line endings and ignore whitespace.

Attachments

Change History

comment:1 Changed 8 years ago by cmlenz

  • Milestone set to 0.8
  • Owner changed from jonas to cmlenz
  • Status changed from new to assigned

comment:2 Changed 8 years ago by cmlenz

  • Component changed from general to changeset view

comment:3 Changed 8 years ago by cmlenz

  • Resolution set to fixed
  • Status changed from assigned to closed

Implemented in [757].

comment:4 Changed 7 years ago by Martin Bialasinski <agr30@…>

  • Milestone 0.8 deleted
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version changed from 0.7 to 0.8

Ignoring line-endings is not implemented, it seams.

Changing line endings from 0x0D to 0x0A shows

  • the old revision of the file as one long line, getting removed
  • the new revision of the file as multiple lines, getting added.

comment:5 Changed 7 years ago by cmlenz

  • Milestone set to 0.9
  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [1315]. Line endings are now always ignored… if we were to make this optional, we'd also need to have a good way to show what changed (for example by displaying invisible characters somehow).

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cmlenz. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.