I sent a commit (named "A commit") to review (Gerrit) using git review
command.
Now, I make a new commit (named "B commit") and I want to send it to review as well, but I don't want to re-send the "A commit". There is no dependencies each other.
How to send a review to gerrit for a specific commit?.
UPDATE:
$ git add --all
$ git status
# On branch delete_role
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: path/to/file.ext
$ git status
# On branch delete_role
nothing to commit (working directory clean)
$ git branch
*delete_role
master
$ git log --graph --decorate --oneline -n13
* 531bd84 (HEAD, delete_role) commit 3
* df68f1a (master) commit 2
* 4ce2d8d commit 1
* 6751c7d (origin/master, origin/HEAD, gerrit/master)
Commit "df68f1a" and "4ce2d8d" are dependant and they have been sent in a previous git review
command, but commit "531bd84" belongs to a new branch (delete_role) because is a new issue.
$ git review
You have more than one commit that you are about to submit.
The outstanding commits are:
531bd84 (HEAD, delete_role) commit 3
df68f1a (master) commit 2
4ce2d8d commit 1
I want to send to Gerrit only the "531bd84" commit, not the other ones.