mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
957e54d9c1
Summary: Simple subcommand support for Rust. A command name like `foo-bar` will be run if the user types `foo-bar`, `foo bar`, or `foo --bar`. I'm thinking about some subcommands about blackbox to show logs in different ways. I also want to move special cases of existing commands that are incompatible with the main job of the command, to seprate commands. For example: hg amend --fixup (incompatible with most amend flags) hg amend --stack (incompatible with most amend flags) hg diff --since-last-arc-diff (incompatible with -r, -c) hg diff --since-last-submit-2o (incompatible with -r, -c) hg diff --since-last-submit (incompatible with -r, -c) hg hide --cleanup (incompatible with -r, -c) hg rebase --restack (incompatible with most rebase flags) So this change is one step towards that - we can move `amend --fixup` logic to a separate `amend-fixup` command. Note: `amend` accepts file names, so we'll need a way to avoid `amend fixup` matching `amend-fixup`. Reviewed By: sfilipco Differential Revision: D17645282 fbshipit-source-id: a5928329a8bcc9d0f68741f3fda14e0ec4c68304 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |