|
|
|
|
|
|
Re: How to revert changes? [message #576419 is a reply to message #502592] |
Wed, 09 December 2009 09:13 |
Christian Halstrick Messages: 274 Registered: July 2009 |
Senior Member |
|
|
Hi,
to make one thing clear: I also think a button in the context menu of the File saying "Team->Revert" would be helpful. It is just missing (or we two haven't found it yet ;))
But this button would not do more then, now I citate you, "just coping the content". There is not more to do to revert a file which is not added to the index than to "just copy old content". Since you haven't "checked-out" the file explicitly there is also no explicit revert"
And specifically git will not "increment the version" as you assumed. Git stores content and two times the same content is the same version for git. You can easily try that out with native git.
Get a project and add a line to the file. Call "git status" and you see the file. Now edit the file again and remove that line. Call "git status" again and you see that no file is touched. This works even together with the index: add a file with one additional line to the index with "git add". Call "git status" to see this file beeing in the index. Then add the file again but now without this additional line. Afterwards "git status" will tell you there are no changes in the index!
--
Ciao
Chris
Ciao
Chris
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04198 seconds