Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] configure jgit to always include gerrit ChangeId

Hi Matthias,

 

There is not much feedback on the enhancement request I filed. Any news ?

 

On my side, I have the regret to be on sick leave for two weeks, then on a duly planned family holiday for another three weeks, hence I’ll be back in the office only around the 1st of September.

 

Is there any chance that somebody else covers the enhancement in the meanwhile ?

 

Thanks

Christophe

 

From: Thiebaud, Christophe
Sent: Donnerstag, 10. Juli 2014 15:43
To: 'Matthias Sohn'
Cc: Halstrick, Christian; JGit Developers list; White, Brandon; Duda, Thorsten; OPREA, Julian; Chiang, Josh
Subject: RE: [jgit-dev] configure jgit to always include gerrit ChangeId

 

Done !

 

Filed enhancement bug !

 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=439346

 

Christophe

 

 

From: Matthias Sohn [mailto:matthias.sohn@xxxxxxxxx]
Sent: Montag, 7. Juli 2014 22:21
To: Thiebaud, Christophe
Cc: Halstrick, Christian; JGit Developers list
Subject: Re: [jgit-dev] configure jgit to always include gerrit ChangeId

 

On Mon, Jul 7, 2014 at 6:56 PM, Thiebaud, Christophe <christophe.thiebaud@xxxxxxx> wrote:

I have another question.

 

The jgitflow plugin uses also the merge API from jgit.

 

After having patched jgitflow so that each and every call to git.commit() contains a setInsertChangeID(true), I note that these merge commit still do not include changeIDs. (see attachments - names should be self-explanatory)

 

In fact, looking at the MergeCommand, there seems to be no way to force the inclusion of a changeID in the merge commit generated.

 

So I cannot even fall back on patching each and every jgitflow commit with a setInsertChangeID(true).

 

Or maybe a merge commit does not need a changeID ? otherwise, how does EGit controls that ?

 

that's missing completely, also in EGit. As a workaround you can amend the merge commit after a merge is done.

I think we should also enhance MergeCommand to support setting changeId similarly to CommitCommand.

As I am not so sure if I miss something I'd suggest you first file an enhancement bug for doing that and we'll

check with Christian if my idea fits into merge as well (it's more complicated than commit).

 

CC-ing the mailing list so that others can see this discussion.

 

--

Matthias


Back to the top