diff options
author | Glen Choo <chooglen@google.com> | 2022-01-29 00:04:44 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-01 22:19:02 (GMT) |
commit | 6e0a2ca0277e6010cd403c70d8f15b66af345d33 (patch) | |
tree | 07a91148100477ddbf3951792fc9652fd0be92df /rerere.h | |
parent | 3f3e76082bc29ff647dff16de9f0145a4d582825 (diff) | |
download | git-6e0a2ca0277e6010cd403c70d8f15b66af345d33.zip git-6e0a2ca0277e6010cd403c70d8f15b66af345d33.tar.gz git-6e0a2ca0277e6010cd403c70d8f15b66af345d33.tar.bz2 |
builtin/branch: consolidate action-picking logic in cmd_branch()
Consolidate the logic for deciding when to create a new branch in
cmd_branch(), and save the result for reuse. Besides making the function
more explicit, this allows us to validate options that can only be used
when creating a branch. Such an option does not exist yet, but one will
be introduced in a subsequent commit.
Helped-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Glen Choo <chooglen@google.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rerere.h')
0 files changed, 0 insertions, 0 deletions