]> khamidou — GitHub mirrors - arcanist.git/commit
Read default relative commit from scratch file with newline
authorGit user <git@fb.com>
Thu, 12 Apr 2012 00:22:07 +0000 (17:22 -0700)
committerNick Harper <nharper@fb.com>
Thu, 12 Apr 2012 00:44:57 +0000 (17:44 -0700)
commit83ad377bdb78cc1412bce12687ceac4235bda37b
tree951d3a8541cec64dbd3eaf0aeaf0796fde0b201b
parentd2915d8c5f20bd9d7a62c7167cc6ce1a4b935bee
Read default relative commit from scratch file with newline

Summary:
When people create the .arc/default-relative-commit scratchfile with $EDITOR of
choice, their editor usually puts a newline at the end, which breaks arc diff.
We should trim the newline before using the contents of the scratchfile.

Test Plan:
ran arc diff in a working copy that contained a .arc/default-relative-commit
with a newline

Reviewers: epriestley, jungejason

Reviewed By: epriestley

CC: aran
Differential Revision: https://secure.phabricator.com/D2209
src/repository/api/git/ArcanistGitAPI.php