Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14403311
D11995.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
957 B
Referenced Files
None
Subscribers
None
D11995.diff
View Options
diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php
--- a/src/workflow/ArcanistWorkflow.php
+++ b/src/workflow/ArcanistWorkflow.php
@@ -932,8 +932,12 @@
echo implode("\n\n", $lists)."\n";
- $all_uncommitted = array_merge($unstaged, $uncommitted);
+ $all_uncommitted = array_merge($untracked, $unstaged, $uncommitted);
if ($this->askForAdd($all_uncommitted)) {
+ if ($untracked) {
+ $api->addToCommit($untracked);
+ }
+
if ($unstaged) {
$api->addToCommit($unstaged);
}
@@ -976,6 +980,10 @@
"# ".pht('Enter a commit message.')."\n#\n".
"# ".pht('Changes:')."\n#\n";
+ foreach ($untracked as $untracked_path) {
+ $template .= "# ".$untracked_path." (".pht('Added').")\n";
+ }
+
$paths = array_merge($uncommitted, $unstaged);
$paths = array_unique($paths);
sort($paths);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 2:17 AM (19 h, 33 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6922687
Default Alt Text
D11995.diff (957 B)
Attached To
Mode
D11995: Add untracked files to commit using prompt
Attached
Detach File
Event Timeline
Log In to Comment