Changing status of VirtualFile

I need to change status of certain VirtualFile from ADDED to either MODIFIED or NOT_CHANGED. Can I do that using API?

Thanks

4 comments
Comment actions Permalink

This is done by overriding getFileStatusProvider in your AbstractVCS implementation
and providing a FileStatusProvider other than (or wrapping)
LocalVcsServices.getInstance(project).getFileStatusProvider()

Serge wrote:

I need to change status of certain VirtualFile from ADDED to either MODIFIED or NOT_CHANGED. Can I do that using API?

Thanks


--

Erb

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

0
Comment actions Permalink

It looks that mentioned method is not a part of AbstractVCS API of Ariadna, is it?

0
Comment actions Permalink

Nope. You will have to wait until November to get the new release which has a much improved VCS integration api (Thanks Olesya again ;)

0
Comment actions Permalink

Thanks. Let's wait than :)

0

Please sign in to leave a comment.