From 04c8e495f9197506522e353b2d27f343f450f935 Mon Sep 17 00:00:00 2001 From: Kyle Schneider Date: Fri, 5 Jul 2013 12:01:55 -0400 Subject: New documentation for updating patches for gerrit Added instructions on how to amend changes to a previous commit. Included commands and brief instructions. Change-Id: I078c9392d71273f559357a014768aada85ad3405 Signed-off-by: Kyle Schneider Reviewed-on: http://review.gluster.org/5295 Reviewed-by: Luis Pabon Tested-by: Luis Pabon --- doc/markdown/dev_guide.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/markdown/dev_guide.md b/doc/markdown/dev_guide.md index aff1bcd..0fb776d 100644 --- a/doc/markdown/dev_guide.md +++ b/doc/markdown/dev_guide.md @@ -158,6 +158,20 @@ git review -d CHANGE_NUMBER where CHANGE_NUMBER is the Gerrit change number. +If you need to create a new patch for a change and include your update(s) +to your last commit type: + +~~~ +git commit -as --amend +~~~ + +Now that you have finished updating your change, you need to re-upload +to Gerrit using the following command: + +~~~ +git review +~~~ + ## Creating Distribution Packages ### Tools Installation -- cgit