Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit Repository usage in web application
JGit Repository usage in web application [message #645028] Wed, 15 December 2010 09:41
Laurent Petit is currently offline Laurent PetitFriend
Messages: 21
Registered: December 2010
Junior Member

A word on my context : I use JGit as a simple way to log all changes made by users of my web application to a "shared" file-based storage in the server.

Once I get a Repository instance, is it safe to keep it for the duration of an HttpSession ?

If an "admin" on the server commits to the Git repo, will the Repository instance, the next time it is invoked (eg through Porcelaine commands) "catch" the new state of the repository and apply the commit to the "right" head ?

Or should I create a Repository instance from scratch for each HttpRequest, and close() it in a "finally" block before the request ends ?

Thanks in advance,

Previous Topic:EGit trouble with keypass
Next Topic:Rename file/folder
Goto Forum:

Current Time: Wed Oct 05 18:59:32 GMT 2022

Powered by FUDForum. Page generated in 0.01882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top