]> khamidou — GitHub mirrors - arcanist.git/commit
Revenge of the git relative commit default
authorepriestley <git@epriestley.com>
Mon, 2 Apr 2012 23:52:20 +0000 (16:52 -0700)
committerepriestley <git@epriestley.com>
Mon, 2 Apr 2012 23:52:20 +0000 (16:52 -0700)
commit39b3778287b6d5fe6ee03c4397f2f09e912f46db
treeaffa03384dac42fe922146c4cf16afebc813f5c9
parent2a66d6bde94ffc4472ec5188f812903dc8780de6
Revenge of the git relative commit default

Summary:
The default of "arc diff" to "arc diff HEAD^" in git is universally confusing to everyone not at Facebook.

Drive the default with configuration instead. Even at Facebook, "origin/trunk" (or whatever) is probably a better default than "HEAD^".

See D863 for the last attempt at this.

NOTE: This is contentious!

Test Plan: Ran "arc diff", got prompted to set a default. Ran "arc diff" from a zero-commit repo, got sensible behavior

Reviewers: btrahan, vrana, nh, jungejason, tuomaspelkonen

Reviewed By: btrahan

CC: aran, epriestley, zeeg, davidreuss
Maniphest Tasks: T651

Differential Revision: https://secure.phabricator.com/D1861
src/repository/api/base/ArcanistRepositoryAPI.php
src/repository/api/git/ArcanistGitAPI.php
src/repository/api/git/__init__.php
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/diff/ArcanistDiffWorkflow.php