]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove "--no-decorate"
authorepriestley <git@epriestley.com>
Tue, 1 May 2012 00:28:04 +0000 (17:28 -0700)
committerepriestley <git@epriestley.com>
Tue, 1 May 2012 00:36:50 +0000 (17:36 -0700)
Summary: Apparently my advice here was terrible, and `--no-decorate` and `--decorate=no` are both very recent additions to Git which a bunch of users don't have. Get rid of them since D2344 allows us to parse all decorate levels anyway.

Test Plan: Tried to google "git changelog", got a bunch of pages about managing changelogs with git.

Reviewers: zeeg, ehren

Reviewed By: ehren

CC: ehren, aran, NorthIsUp
Differential Revision: https://secure.phabricator.com/D2354

src/repository/api/git/ArcanistGitAPI.php

index 21389dbc2a4d69f254dda64bd8a0f2dedfbbc423..b47c0b0a60898aa3daadf14505c58c4bbfe021ab 100644 (file)
@@ -292,11 +292,11 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
     } else if ($relative == self::GIT_MAGIC_ROOT_COMMIT) {
       // First commit.
       list($stdout) = $this->execxLocal(
-        'log --no-decorate --format=medium HEAD');
+        'log --format=medium HEAD');
     } else {
       // 2..N commits.
       list($stdout) = $this->execxLocal(
-        'log --no-decorate --first-parent --format=medium %s..HEAD',
+        'log --first-parent --format=medium %s..HEAD',
         $this->getRelativeCommit());
     }
     return $stdout;