Edgewall Software
Modify

Opened 20 years ago

Closed 19 years ago

Last modified 18 years ago

#503 closed defect (fixed)

Settings for controlling diff line-endings & whitespace

Reported by: jamesm@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.9
Component: version control/changeset view Version: 0.8
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (5)

comment:1 by Christopher Lenz, 20 years ago

Milestone: 0.8
Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

comment:2 by Christopher Lenz, 20 years ago

Component: generalchangeset view

comment:3 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: assignedclosed

Implemented in [757].

comment:4 by Martin Bialasinski <agr30@…>, 19 years ago

Milestone: 0.8
Resolution: fixed
Status: closedreopened
Version: 0.70.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 by Christopher Lenz, 19 years ago

Milestone: 0.9
Resolution: fixed
Status: reopenedclosed

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).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.