more information for committers 54/5454/1
authorLuca Muscariello <[email protected]>
Tue, 21 Feb 2017 14:37:42 +0000 (15:37 +0100)
committerLuca Muscariello <[email protected]>
Tue, 21 Feb 2017 14:37:42 +0000 (15:37 +0100)
Change-Id: I8c9b99efb91d9eb3929a9a46db5094e917a91b3f
Signed-off-by: Luca Muscariello <[email protected]>
README.md

index 5d38f16..e7f35bd 100644 (file)
--- 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://[email protected]:29418/cicn subp;
+$ scp -p -P 29418 [email protected]:hooks/commit-msg subp/.git/hooks/;
+
+If you use an email alias like [email protected] that is registered in the
+gerrit frontend it is recommended to set the following kind of configuration
+
+$ git config --local user.email "[email protected]"
+$ 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