Sets a specific branch to clone from instead of the current working tree. When set, the task copies only the committed state at the branch's HEAD.
(mut self, branch: Option<String>)
| 228 | /// Sets a specific branch to clone from instead of the current working tree. |
| 229 | /// When set, the task copies only the committed state at the branch's HEAD. |
| 230 | pub fn branch(mut self, branch: Option<String>) -> Self { |
| 231 | self.branch = branch; |
| 232 | self |
| 233 | } |
| 234 | |
| 235 | /// Builds the task, creating all necessary files and directories |
| 236 | pub async fn build(self, ctx: &AppContext) -> Result<Task, Box<dyn Error>> { |
no outgoing calls