mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 08:12:40 +01:00
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
This commit is contained in:
parent
bd9769ba92
commit
42db1733b9
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ class ArcanistGitAPI extends ArcanistRepositoryAPI {
|
||||||
public function getBlame($path) {
|
public function getBlame($path) {
|
||||||
// TODO: 'git blame' supports --porcelain and we should probably use it.
|
// TODO: 'git blame' supports --porcelain and we should probably use it.
|
||||||
list($stdout) = execx(
|
list($stdout) = execx(
|
||||||
'(cd %s; git blame -w -C %s -- %s)',
|
'(cd %s; git blame --date=iso -w -C %s -- %s)',
|
||||||
$this->getPath(),
|
$this->getPath(),
|
||||||
$this->getRelativeCommit(),
|
$this->getRelativeCommit(),
|
||||||
$path);
|
$path);
|
||||||
|
|
Loading…
Reference in a new issue