<div dir="ltr"><div dir="ltr"><div dir="ltr">I'm not sure if this is well known, but it helped me so I thought I'd share it with you.<div><br></div><div>When committing to gitmonorepo, (with git llvm push) you need to have committed to your local repo first and so you need to have crafted your commit message from your the Phabricator revision. (e.g. D12345)</div><div><br></div><div>Phabricator has the ability to give you this commit message it would have used, even if you do not use arc to perform the commit/land<br></div><div><br></div><div>This small script (attached) uses arc, jq and sed  (but it can be relatively easily changed to use curl instead of arc)</div><div><br></div><div>You need to provide your own conduit api token in place of <replace_with_phabricator_api_token> </div><div><br></div><div>You can get one of these from you Profile->Setting->Conduit API Tokens in the top right hand corner of Phabricator <a href="https://reviews.llvm.org">https://reviews.llvm.org</a><br></div><div><br></div><div>----------------------------  <br></div><div>get_commit_message.sh</div><div>----------------------------</div><div><div>echo '{ "revision_id": '${1:1}' }' | arc call-conduit --conduit-uri <a href="https://reviews.llvm.org/">https://reviews.llvm.org/</a> --conduit-token <replace_with_phabricator_api_token> differential.getcommitmessage | jq ".response" | sed 's/^.\(.*\).$/\1/' - | sed 's/\\n/\</div><div>/g' -</div></div><div>---------------------------- </div><div><br></div><div>This simply pulls the commit message as json and then replaces \n with newlines (there are probably better ways of doing this, I'm not a jq expert!) <br></div><div><br></div><div>Given an example review <a href="https://reviews.llvm.org/D58250">https://reviews.llvm.org/D58250</a></div><div><br></div><div>simply run</div><div><br></div><div>get_commit_message.sh D58250 </div><div><br></div><div>And you get all the relevant information (see below) about the message,revision,reviewers, subsribers etc.. returned  (as if arc was going to commit it)</div><div><br></div><div>(names changed to protect the innocent)</div><div>---------------------------------------------------------------------------------</div><div><div>[AIX][CMake] Changes for building on AIX with XL and GCC</div><div><br></div><div>Summary: In support of IBM's efforts to produce a viable C and C++ LLVM compiler for AIX (ref: RFC at <a href="http://lists.llvm.org/pipermail/llvm-dev/2019-February/130175.html">http://lists.llvm.org/pipermail/llvm-dev/2019-February/130175.html</a>), this patch adds customizations to the CMake files in order to properly invoke the host toolchain for the build on AIX. Additional changes to enable a successful build will follow.</div><div><br></div><div>Reviewers: john doe</div><div><br></div><div>Reviewed By: jane doe,walter smith</div><div><br></div><div>Subscribers: jane doe, llvm-commits</div><div><br></div><div>Tags: #llvm</div><div><br></div><div>Differential Revision: <a href="https://reviews.llvm.org/D58250">https://reviews.llvm.org/D58250</a></div></div><div>---------------------------------------------------------------------------------  <br></div><div><br></div><div>You can then copy and paste this into your commit message.</div><div><br></div><div>I hope this helps..</div><div><br></div><div>MyDeveloperDay</div><div><br></div></div></div></div>