]> khamidou — GitHub mirrors - arcanist.git/commit
Add untracked files to commit using prompt
authornevogd <nevogd@yahoo.co.uk>
Fri, 6 Mar 2015 12:41:00 +0000 (04:41 -0800)
committerepriestley <git@epriestley.com>
Fri, 6 Mar 2015 12:41:00 +0000 (04:41 -0800)
commit3d871b42146ee98a18b6f71589a8ac8bbac77022
tree055cacf47d7a6b67831b65f0fed72a3c10b8636a
parentc36b4ceb1849ef666a2b94aeeb70c84a1c7da717
Add untracked files to commit using prompt

Summary:
Refs D11990. When using `arc diff` with untracked files in the working
copy, add the untracked file(s) to the commit (as they weren't stashed or
ignored). Add the untracked paths to the list of changes in the editor
template, indicating that the files were added to the commit.

This doesn't add a separate prompt to add untracked files as per the
behaviour prior to D11843.

Test Plan:
Ran `arc diff` with only untracked files, answered yes to the 'create
new commit' prompt. Saw the commit-message with the updated changes
including untracked files. Completed the arc template, and got commit
containing uncommitted, unstaged and untracked files.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11995
src/workflow/ArcanistWorkflow.php