git-diff-index -C problem
- From
- Govind Salinas <govindsalinas@gmail.com>
- Date
- Jun 18, 2007, 05:48 UTC
- Message-ID
- <69b0c0350706172248l6343e4c6yfd36ced8230a11ef@mail.gmail.com>
I am writing a porcelain for git and I have been playing with git-diff-index. I noticed that if i copy a file and git-add the copy it shows the file added, as i expect...
But then if i then say git-add on the original file, i expect that -C would check that file to see if it was copied, it does not. If i touch the file, then git detects the copy, so git-add is not forcing git to consider the file modified.
I would be happy if there was a way that I could tell git that a file was modified for this purpose. Otherwise I will have to open/close a file in which the user may be working, which I shouldn't do from my app (windows problem modifying open docs). Maybe make "git-add -f" do that?
Thanks, Govind.