mirror of
https://github.com/jj-vcs/jj.git
synced 2026-07-07 17:45:22 +08:00
As we have discussed many times on Discord and GitHub, `--destination` is not a great name because `--insert-before` and `--insert-after` are also destinations. The most popular alternative seems to be `--onto`. We already use that term in descriptions in several places, such as in the help text for `rebase -d` where we say "The revision(s) to rebase onto". This patch therefore renames the `--destination` flag to `--onto`. The short name naturally becomes `-o`. That is perhaps a little unfortunate because it's a common short name for `--output <file>` arguments, but we don't use that anywhere so it seems fine. Perhaps we should also rename `--source` (used by `rebase` and `fix`) to something else. Perhaps the most obvious name is `--descendants`, but the short form would be `-d`, which is of course already taken by `--destination` in the case of `rebase`. Either way, I'm leaving that rename for later. It would be good to do it before next release if we are going to do it, though. Closes #7941
81 KiB
81 KiB