Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit plumbing API - commit new or modified file to non-current branch
JGit plumbing API - commit new or modified file to non-current branch [message #1742459] Thu, 01 September 2016 19:11
Tony Crisera is currently offline Tony CriseraFriend
Messages: 3
Registered: November 2012
Junior Member
Sorry, relative novice, but I have not been able to find specific example to address this. Working on a service that is using Git to store configuration documents. They would be worked on in branches until "published".
I've been able to do all the querying and fetching of documents from any branch in the local repository where the service would run, without having to "checkout" branch into working directory. I would like to do the same with a save operation.

I've found examples of using ObjectInserter, TreeFormatter and CommitBuilder to do this, but no explicit/explained example of doing this to specific branch that would produce the same results as switching, adding and committing with porcelain API.

I've played around with RefUpdate after the commit, and think I'm on the right track, but could use some help.

Thanks in advance
Previous Topic:news.eclipse.org is shutting down.
Next Topic:Commit diff view for index
Goto Forum:
  


Current Time: Thu Apr 25 00:10:03 GMT 2024

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

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

Back to the top