aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Muscariello <lumuscar+fdio@cisco.com>2017-02-21 15:37:42 +0100
committerLuca Muscariello <lumuscar+fdio@cisco.com>2017-02-21 15:37:42 +0100
commitfc6a10d4a0095229ee2420618dd30efe4ce46628 (patch)
tree595347247ff6bf9f9760366ac87311d4ef1644f9
parent342d82ab130edb68fe5f07aa1e7f3048eaac6003 (diff)
more information for committers
Change-Id: I8c9b99efb91d9eb3929a9a46db5094e917a91b3f Signed-off-by: Luca Muscariello <lumuscar+fdio@cisco.com>
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5d38f162..e7f35bda 100644
--- a/README.md
+++ b/README.md
@@ -63,3 +63,25 @@ git clone -b http-server/master https://gerrit.fd.io/r/cicn http-server;
git clone -b viper/master https://gerrit.fd.io/r/cicn viper;
git clone -b vicn/master https://gerrit.fd.io/r/cicn vicn;
git clone -b android-sdk https://gerrit.fd.io/r/cicn android-sdk;
+
+### For committers
+
+By having multiple sub-projects in the same repo, it is highly recommended
+to use the following approach while using branches and pushing patch sets.
+
+$ subp = cicm-plugin
+$ committer = user
+
+$ git clone -b cicn-plugin/master ssh://committer@gerrit.fd.io:29418/cicn subp;
+$ scp -p -P 29418 committer@gerrit.fd.io:hooks/commit-msg subp/.git/hooks/;
+
+If you use an email alias like user+fdio@email.com that is registered in the
+gerrit frontend it is recommended to set the following kind of configuration
+
+$ git config --local user.email "$committer+fdio@email.com"
+$ git config --local alias.push-for-review "push origin HEAD:refs/for/$subp/master"
+
+this allows to avoid pushing for review to different sub-project branches
+using the command
+
+$ git push-for-review