0

I have a patch with some Sets in Gerrit, but would like to change the commit message of the recently pushed patch set. But seems even after updating commit message using amend and pushing it to gerrit creates a new Patch Set instead of updating previous one.

So is it possible to edit commit message of last patch without adding a new patch set?

Uwe Keim
  • 36,867
  • 50
  • 163
  • 268
Just Shadow
  • 7,001
  • 2
  • 40
  • 51

2 Answers2

1

Gerrit will update existing review with a new patchset as long as the Change-Id field remains the same.

EDIT: I see you've edited your question. No, it's not possible to update commit message without creating new patchset.

Oleksandr Kravchuk
  • 5,268
  • 1
  • 18
  • 28
1

No, It isn't possible to edit the commit message of last patch without adding a new patchset.

I don't know exactly what is your issue about the new patchset but... it's possible to configure Gerrit in the way that it won't require to review again a previously approved patchset if only the commit message is different.

See more details here.