]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use -M instead of -C in `git blame`
authorJakub Vrana <jakubv@fb.com>
Tue, 13 Dec 2011 19:38:42 +0000 (11:38 -0800)
committervrana <jakubv@fb.com>
Tue, 13 Dec 2011 19:48:00 +0000 (11:48 -0800)
Test Plan: arc cover

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley
Maniphest Tasks: T668

Differential Revision: 1199

src/repository/api/git/ArcanistGitAPI.php

index ee58e80f9ff023a01a869075a06658475717cea9..fd20e2e86c974c19fa035c99657ff62633a0ea97 100644 (file)
@@ -377,7 +377,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 --date=iso -w -C %s -- %s)',
+      '(cd %s; git blame --date=iso -w -M %s -- %s)',
       $this->getPath(),
       $this->getRelativeCommit(),
       $path);