git incorrectly infers rename i.e. (delete file1 + creation of new file2) != (file => file2)

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

 



Hi

I deleted a file called 'class.NumberOfResultsCache.php' and created a
completely different file called
'cgi-bin/___php/class.NumberOfResults.php'. I deleted the file using
rm followed by 'git rm'.

When I do a 'git status' I now get told:

   renamed:    cgi-bin/___php/class.NumberOfResultsCache.php ->
cgi-bin/___php/class.NumberOfResults.php

However I want to commit 'class.NumberOfResultsCache.php' as having
been deleted, and I want to commit 'class.NumberOfResults.php' as a
brand new file.

How do I get git to do this? Apologies for a 'noob' question. Only
been using the superb git for a couple of weeks!

Thanks :)
--
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]