From: Jason Ge Date: Fri, 29 Jul 2011 22:22:37 +0000 (-0700) Subject: Specify date format in git blame X-Git-Tag: conduit-4~282^2~13 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=42db1733b9da53abdadeb650e9c6282110a66df8;p=arcanist.git Specify date format in git blame Summary: right now 'arc blame' uses the user's blame.date setting, but it will only work when the format is iso. So it will fail for user who has customized it. Test Plan: run arc cover with 'blame.date' set to relative and verified that 'arc cover' still works Reviewed By: epriestley Reviewers: epriestley, codeblock CC: hwang, aran, epriestley Differential Revision: 745 --- diff --git a/src/repository/api/git/ArcanistGitAPI.php b/src/repository/api/git/ArcanistGitAPI.php index 13570a46..c6234cb1 100644 --- a/src/repository/api/git/ArcanistGitAPI.php +++ b/src/repository/api/git/ArcanistGitAPI.php @@ -317,7 +317,7 @@ class ArcanistGitAPI extends ArcanistRepositoryAPI { public function getBlame($path) { // TODO: 'git blame' supports --porcelain and we should probably use it. list($stdout) = execx( - '(cd %s; git blame -w -C %s -- %s)', + '(cd %s; git blame --date=iso -w -C %s -- %s)', $this->getPath(), $this->getRelativeCommit(), $path);