Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add patch sets to a Gerrit review without ammending/squashing commits

Tags:

git

gerrit

A simple example. I commit a change to Gerrit, which breaks the CI build or a reviewer is not satisfied. I then fix my change with another commit. In many cases this is small patch set for which I do not want a new gerrit review but rather as a new patch set in the original review.

I know this can be achived using ammend or rebasing and squashin.

Is this the only options? We are a little bit concerned about having to rewrite history using rebasing and squashing.

Thanks,

Giao.

like image 916
Giao The Cung Avatar asked Jun 15 '11 11:06

Giao The Cung


2 Answers

git commit --amend works pretty well; that how we do it most of the time.

like image 58
Eric Bowman - abstracto - Avatar answered Oct 27 '22 19:10

Eric Bowman - abstracto -


This has been discussed on the gerrit mailing list: http://groups.google.com/group/repo-discuss/browse_thread/thread/fc4246f02b77aa9a

like image 45
Thomas Koch Avatar answered Oct 27 '22 18:10

Thomas Koch