Defect #11868
closed
Git and Mercurial diff displays deleted files as /dev/null
Added by Humberto Anjos over 12 years ago.
Updated over 12 years ago.
Description
It's the same bug reported here with ChiliProject: https://www.chiliproject.org/issues/589
Basically, in the diff view of git commits, deleted files show up as changes to the file /dev/null
.
I'm using the Bitnami Redmine Stack, version 2.0.3-1. Administration > Information
shows:
Environment:
Redmine version 2.0.3.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.6
Environment production
Database adapter MySQL
What would be the expected behaviour?
Jean-Philippe Lang wrote:
What would be the expected behaviour?
To show the original file names, with some indication that the files are no longer there.
An example of reasonable behavior can be seen here: in this commit, the files Events.cs and Utilities.cs no longer exist. When one clicks in Show Diff Stats, there is an icon showing that those files were removed.
P.S. Optionally, I wouldn't even show their contents too (my diff got truncated here, since some of the removed files were quite long...), but that's an extra :)
- Subject changed from /dev/null in commit-diff-views to Git diff displays deleted files as /dev/null
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.2.0
- Resolution set to Fixed
Humberto Anjos wrote:
To show the original file names, with some indication that the files are no longer there.
An example of reasonable behavior can be seen here: in this commit, the files Events.cs and Utilities.cs no longer exist. When one clicks in Show Diff Stats, there is an icon showing that those files were removed.
Fixed in r10424. The indication that the file was deleted is displayed on the revision view.
P.S. Optionally, I wouldn't even show their contents too (my diff got truncated here, since some of the removed files were quite long...), but that's an extra :)
Not sure that this behaviour is desirable to everyone, maybe a seperate feature request.
Oh, and don't forget to clear your cache if you upgrade (diff rendering is cached).
- Subject changed from Git diff displays deleted files as /dev/null to Git and Mercurial diff displays deleted files as /dev/null
Also available in: Atom
PDF