]> khamidou — GitHub mirrors - arcanist.git/commit
Improve getting Git author
authorvrana <jakubv@fb.com>
Thu, 29 Nov 2012 23:35:57 +0000 (15:35 -0800)
committervrana <jakubv@fb.com>
Fri, 30 Nov 2012 19:09:31 +0000 (11:09 -0800)
commit6cb8d483b23c132da4c82934438cd1af0e5ba32b
treecc2be85fc5d729a3ce3e4058bab509589d1745e4
parent9917c1f06ab6de668a62cf747d36c9eab8eeb421
Improve getting Git author

Summary:
It has one more than source, see http://www.kernel.org/pub/software/scm/git/docs/git-commit-tree.html#_commit_information.
Also 'user.name' may not be set at all.
Also `git config` returns non-zero for non-existing value.

Test Plan:
  var_dump($api->getAuthor());

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4053
src/repository/api/ArcanistGitAPI.php