]> khamidou — GitHub mirrors - arcanist.git/commit
Use `git diff a b` for ranges, not `git diff a..b`
authorepriestley <git@epriestley.com>
Fri, 11 Jul 2014 17:45:11 +0000 (10:45 -0700)
committerepriestley <git@epriestley.com>
Fri, 11 Jul 2014 17:45:11 +0000 (10:45 -0700)
commitf9f2092246d26362aae06e7e534db906d4c1ca4f
tree27af83196d7520e47ce3ac1bf2fd654400fcc49a
parent09cf64bec3d32c4a4fba6e30bbf600121a8ab112
Use `git diff a b` for ranges, not `git diff a..b`

Summary:
These are documented as being identical, but `git diff a b` works if `a` is a tree (for example, `4b825d...`, the empty tree hash), but `git diff a..b` does not.

Particularly, with the `a..b` form, `arc diff --base arc:empty` does not work. With the `a b` form, it does.

Test Plan: Ran `arc diff --base arc:empty` in a repository and got a diff.

Reviewers: btrahan, talshiri

Reviewed By: talshiri

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9898
src/repository/api/ArcanistGitAPI.php