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

0
4 comments
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

Thanks. Let's wait than :)

0

Please sign in to leave a comment.