Page MenuHomePhabricator

D11536.id27753.diff
No OneTemporary

D11536.id27753.diff

diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -494,6 +494,7 @@
$this->updateLintDiffProperty();
$this->updateUnitDiffProperty();
$this->updateLocalDiffProperty();
+ $this->updateGeneratedDiffProperty();
$this->resolveDiffPropertyUpdates();
$output_json = $this->getArgument('json');
@@ -2360,6 +2361,18 @@
$this->updateDiffProperty('local:commits', json_encode($local_info));
}
+ /**
+ * Update generated paths for the diff.
+ *
+ * @task diffprop
+ */
+ private function updateGeneratedDiffProperty() {
+ $paths = $this->getWorkingCopy()->getProjectConfig('generated-paths');
+
+ if ($paths) {
+ $this->updateDiffProperty('arc:generated', json_encode($paths));
+ }
+ }
/**
* Update an arbitrary diff property.

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 25, 2:13 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7721148
Default Alt Text
D11536.id27753.diff (922 B)

Event Timeline