git-status rename conflict with a few git-adds following a git-mv (git for windows 1.9.4)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I noticed a weird rename conflict after doing the following steps:
   1. Changing the extension of a file using 'git mv'.
   2. Editing the file and staging the changes.
   3. Creating a new file and staging it.

Here is the Git Bash output showing the issue. The previously mentioned steps are highlighted with asterisks.

$ git --version
git version 1.9.4.msysgit.0

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean

**** STEP 1 ****

$ git mv src/documents/contact.html.md src/documents/contact.html.md.eco

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        renamed:    src/documents/contact.html.md -> src/documents/contact.html.md.eco

**** STEP 2 ****

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        renamed:    src/documents/contact.html.md -> src/documents/contact.html.md.eco

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   src/documents/contact.html.md.eco


$ git add src/documents/contact.html.md.eco

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        deleted:    src/documents/contact.html.md
        new file:   src/documents/contact.html.md.eco

**** STEP 3 ****

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        deleted:    src/documents/contact.html.md
        new file:   src/documents/contact.html.md.eco

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        src/partials/address.html.md


$ git add src/partials/address.html.md

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        new file:   src/documents/contact.html.md.eco
        renamed:    src/documents/contact.html.md -> src/partials/address.html.md


Note here that the renamed object is wrong. Also note that I haven't commited the changes to the repo. 

The repo is cloned from "https://github.com/prontog/elm";.

Regards,

Panos
  		 	   		  --
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]