Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit - GerritHook?(execute git gerrithook programmatically)
JGit - GerritHook? [message #1821234] Fri, 07 February 2020 15:17 Go to next message
Jacky Josi is currently offline Jacky JosiFriend
Messages: 1
Registered: February 2020
Junior Member

Hi folks,

I am using JGit for the first time, because I would like to make a connection to my project which is stored in gerrithook.

Before I make an push,
I have to execute the command:

"git gerrithook" to create the change-id.
Does anyone of you have an idea,
how I can solve this by JGit programmatically?

Re: JGit - GerritHook? [message #1821430 is a reply to message #1821234] Thu, 13 February 2020 00:01 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1214
Registered: July 2009
Senior Member
You can use org.eclipse.jgit.util.ChangeIdUtil [1] to generate Gerrit changeIds.

Previous Topic:Cannot connect to a git server using JGit
Next Topic:"rejected - non-fast-forward" while pushing a new local branch to remote
Goto Forum:

Current Time: Tue Dec 06 18:28:11 GMT 2022

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

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

Back to the top