Simplify codebase by splitting patch::create::run() into patch::create::run() and patch::update::run(). Patch has the subcommands `create` and `update` but both use the same method to do the heavy lifting. Spitting the code allows us to detangle the code path making it easier to follow. Also, reduce cognitive load by minimizing the amount of variables used and isolating them to utility functions. For instance, `head_branch` can be passed to these methods instead of `head_oid` and `head_branch`. Signed-off-by: Slack Coder <slackcoder@server.ky> |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| tests | ||
| Cargo.toml | ||