Page MenuHomePhabricator

D11995.diff
No OneTemporary

D11995.diff

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

Mime Type
text/plain
Expires
Sun, May 12, 5:31 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6289979
Default Alt Text
D11995.diff (957 B)

Event Timeline