Page MenuHomePhabricator

Add untracked files to commit using prompt
ClosedPublic

Authored by nevogd on Mar 6 2015, 8:17 AM.
Tags
None
Referenced Files
F14403311: D11995.diff
Mon, Dec 23, 2:17 AM
Unknown Object (File)
Tue, Dec 3, 5:51 AM
Unknown Object (File)
Thu, Nov 28, 4:38 PM
Unknown Object (File)
Thu, Nov 28, 4:38 PM
Unknown Object (File)
Thu, Nov 28, 4:38 PM
Unknown Object (File)
Thu, Nov 28, 4:23 PM
Unknown Object (File)
Tue, Nov 26, 6:52 PM
Unknown Object (File)
Nov 22 2024, 8:18 AM

Details

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.

Diff Detail

Repository
rARC Arcanist
Branch
diff_workflow
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4782
Build 4798: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

nevogd retitled this revision from to Add untracked files to commit using prompt.
nevogd updated this object.
nevogd edited the test plan for this revision. (Show Details)
nevogd added a reviewer: epriestley.

This looks good, but you need to sign the CLA before I can merge it (see link in header).

epriestley edited edge metadata.
This revision is now accepted and ready to land.Mar 6 2015, 12:40 PM
This revision was automatically updated to reflect the committed changes.

In the past, diff workflows allowed us to skip adding untracked files to the revision and continue with the workflow.

Is the expected behavior here that if you say No to adding the untracked files to the commit, that the workflow should abort? If so, don't we lose that previous functionality?