Discussion:
Get list of files to commit
Tim
2011-06-04 02:48:57 UTC
Permalink
How do I get the list of files that are changed since the last commit and that need to commit in my Eclipse plugin?

Thanks.

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2757196

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Mark Phippard
2011-06-04 11:59:09 UTC
Permalink
Post by Tim
How do I get the list of files that are changed since the last commit and that need to commit in my Eclipse plugin?
Do you mean programmatically?

If you have a working copy you would use the status API. This will
show locally modified items that are elligible to commit. There is
also a boolean on the API to contact the server. This will tell you
what changes are on the server that you do not have in your working
copy.

If you do not have a working copy, then you would need to run the log
API and pass it the last revision you were aware of as the from
revision and HEAD as the to revision. This would show all commits
between those two revisions.
--
Thanks

Mark Phippard
http://markphip.blogspot.com/

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2757652

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Loading...