]> khamidou — GitHub mirrors - arcanist.git/commit
Improve 'arc' behavior under git mutable history with ambiguous commit messages
authorepriestley <git@epriestley.com>
Fri, 13 Jan 2012 03:03:11 +0000 (19:03 -0800)
committerepriestley <git@epriestley.com>
Fri, 13 Jan 2012 04:09:53 +0000 (20:09 -0800)
commitf271e1d8e8856a450b6dfcec89ef0a33c5ab4aae
tree47d69db3606314506f5be76f9ac6dd185e5aca2c
parent93db641a3eca204cec584a3f6e0d335ce6948127
Improve 'arc' behavior under git mutable history with ambiguous commit messages

Summary:
Currently, we throw a fairly perplexing error when there are multiple valid
commit messages. Installs can also remove the "test plan" field entirely, which
is the only really strong discriminator here.

When the message to use is ambiguous, show the user all the valid messages and
prompt them to choose one.

Also add a -C flag like "git commit -C", so they can choose a message
explicitly.

Test Plan: Ran "arc diff HEAD^^^^^", "arc diff -C <rev>".

Reviewers: cpiro, btrahan, jungejason

Reviewed By: cpiro

CC: aran, cpiro
Differential Revision: https://secure.phabricator.com/D1385
src/repository/api/base/ArcanistRepositoryAPI.php
src/repository/api/git/ArcanistGitAPI.php
src/workflow/diff/ArcanistDiffWorkflow.php