From: Elijah Newren via GitGitGadget Date: Mon, 27 Apr 2020 17:59:49 GMT Subject: [PATCH v2] rebase: display an error if --root and --fork-point are both provided Message-ID: In-Reply-To: From: Elijah Newren --root implies we want to rebase all commits since the beginning of history. --fork-point means we want to use the reflog of the specified upstream to find the best common ancestor between and and only rebase commits since that common ancestor. These options are clearly contradictory, so throw an error (instead of segfaulting on a NULL pointer) if both are specified. Reported-by: Alexander Berg Documentation-by: Alban Gruin Signed-off-by: Elijah Newren --- rebase: display an error if --root and --fork-point are both provided Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-771%2Fnewren%2Frebase-fork-point-root-error-v2 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-771/newren/rebase-fork-point-root-error-v2 Pull-Request: https://github.com/git/git/pull/771 Range-diff vs v1: 1: c4508c7ddae ! 1: 307124b00d4 rebase: display an error if --root and --fork-point are both provided @@ Commit message segfaulting on a NULL pointer) if both are specified. Reported-by: Alexander Berg + Documentation-by: Alban Gruin Signed-off-by: Elijah Newren + ## Documentation/git-rebase.txt ## +@@ Documentation/git-rebase.txt: When --fork-point is active, 'fork_point' will be used instead of + ` command (see linkgit:git-merge-base[1]). If 'fork_point' + ends up being empty, the will be used as a fallback. + + +-If either or --root is given on the command line, then the +-default is `--no-fork-point`, otherwise the default is `--fork-point`. ++If is given on the command line, then the default is ++`--no-fork-point`, otherwise the default is `--fork-point`. + + + If your branch was based on but was rewound and + your branch contains commits which were dropped, this option can be used + with `--keep-base` in order to drop those commits from your branch. +++ ++See also INCOMPATIBLE OPTIONS below. + + --ignore-whitespace:: + --whitespace=