]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Specify date format in git blame
authorJason Ge <jungejason@fb.com>
Fri, 29 Jul 2011 22:22:37 +0000 (15:22 -0700)
committerJason Ge <jungejason@fb.com>
Fri, 29 Jul 2011 22:29:22 +0000 (15:29 -0700)
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

src/repository/api/git/ArcanistGitAPI.php

index 13570a464c88a29f95eb6b0cce16d2a2717416f4..c6234cb1e332a9ec43950568171625a81c3f2355 100644 (file)
@@ -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);