Skip to content

No diff shown for renamed file #980

Closed

Description

@cheshire137

I moved a file into a different directory while at the same time changing some of its contents. I can only see that it was moved in the app:

github_desktop

The wrapping of the file names looks a bit scrunched in the blue area on the left, also. That may be related to #695.

Additionally, I had to do a manual git rm command on the old path in the terminal before I saw the rename displayed in the app. When I had just done the mv command, but not git mv, the new location showed up as a new file in the app while the old location showed up as a conflicted file, with the little ⚠️ icon to the right of the file name in the app.

This is version 0.0.24.

Activity

  1. shiftkey commented on Mar 1, 2017

    @shiftkey
    Member

    Yup, the similarity index 100% diff means we don't have a diff to display:

    $ git status
    On branch master
    Changes to be committed:
      (use "git reset HEAD <file>..." to unstage)
    
    	renamed:    NEW-README.md -> README.md
    
    $ git diff --staged     
    diff --git a/NEW-README.md b/README.md
    similarity index 100%
    rename from NEW-README.md
    rename to README.md
  2. niik commented on Mar 10, 2017

    @niik
    Member

    The wrapping of the file names looks a bit scrunched in the blue area on the left, also. That may be related to #695.

    Yeah that looks real bad. @shiftkey I thought you fixed this recently?

    I'm thinking we should close this issue as it's expected behavior (although it could certainly use a sprinkle of UX) and open new ones for the truncation bug in the file list and for adding some ✨ to the display of renamed files with no changes. Thoughts?

  3. shiftkey commented on Mar 12, 2017

    @shiftkey
    Member

    Yeah that looks real bad. @shiftkey I thought you fixed this recently?

    Nah, our current diff parsing doesn't look at the diff similarity number - it only looks for the diff hunks and draws those.

    👍 for introducing polish issues for the diff view. I'm working on the file path trunaction issue in #695 at the moment.

  4. niik commented on Mar 12, 2017

    @niik
    Member

    Nah, our current diff parsing doesn't look at the diff similarity number - it only looks for the diff hunks and draws those.

    Sorry, I was beeing unclear here. I meant I thought I remember you fixing the path truncation issue.

    I'm working on the file path trunaction issue in #695 at the moment.

    Ah, this is what I was thinking of then

  5. shiftkey commented on Mar 13, 2017

    @shiftkey
    Member

    @niik no problem. Let's leave this open to track the diff body polish then...

  6. self-assigned this
    on Apr 20, 2017
  7. locked as resolved and limited conversation to collaborators on Jul 22, 2018
  8. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions