]> khamidou — GitHub mirrors - arcanist.git/commit
Fix ambiguous argument where a branch has the same name as a file
authorepriestley <git@epriestley.com>
Sun, 22 Jul 2012 20:19:09 +0000 (13:19 -0700)
committerepriestley <git@epriestley.com>
Sun, 22 Jul 2012 20:19:09 +0000 (13:19 -0700)
commitd2f0ffac7d956eb5e4b68c43c344da31dfa5941e
treed854ed417e2ead0c4756522798af2783f75cf09b
parent1e8add9583b5edb2d7b1281065cf4f58a6e08ca0
Fix ambiguous argument where a branch has the same name as a file

Summary: Currently, if you have a branch named "docs" and a local file named "docs", `git show -s docs` complains because it's ambiguous. Use `--` to unambiguously mark branches as revisions, not files.

Test Plan: Ran `arc branch` in a working copy with a "docs" branch and a "docs" file, got expected results.

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran
Differential Revision: https://secure.phabricator.com/D3030
src/workflow/ArcanistBranchWorkflow.php