[forge-dev] reference work for git-based undo plugin

Dan Allen dan.j.allen at gmail.com
Sat May 5 12:42:07 EDT 2012


Jevgeni,

I came across some code last week that may prove to be a useful reference
for the git-based undo functionality you are working on for Forge.

The Aquillian OpenShift container adapter uses a temporary git repository
to stage the project in order to push it to a separate remote location
where the tests are run. What you might find useful about this plugin is
the use of jgit and the synchronization of state from the current
repository to the temporary repository.

Here's the main class involved:

https://github.com/arquillian/arquillian-container-openshift/blob/master/openshift-express/src/main/java/org/jboss/arquillian/container/openshift/express/OpenShiftRepository.java

Here's where it is invoked:

https://github.com/arquillian/arquillian-container-openshift/blob/master/openshift-express/src/main/java/org/jboss/arquillian/container/openshift/express/OpenShiftExpressContainer.java

Perhaps it will provide some useful ideas.

-Dan

-- 
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://google.com/profiles/dan.j.allen
http://mojavelinux.com
http://mojavelinux.com/seaminaction
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20120505/a5b4feb8/attachment.html 


More information about the forge-dev mailing list