]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
branch: accept multiple upstream branches for tracking
authorJosh Steadmon <steadmon@google.com>
Tue, 21 Dec 2021 03:30:22 +0000 (19:30 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Dec 2021 06:40:21 +0000 (22:40 -0800)
commita3f40ec4b0dc56a54e6a6866d0a44a04d4a6edf0
tree08a50ea443f97b4e4652bf03fc34f4cf995db5da
parentf443b226ca681d87a3a31e245a70e6bc2769123c
branch: accept multiple upstream branches for tracking

Add a new static variant of install_branch_config() that accepts
multiple remote branch names for tracking. This will be used in an
upcoming commit that enables inheriting the tracking configuration from
a parent branch.

Currently, all callers of install_branch_config() pass only a single
remote. Make install_branch_config() a small wrapper around
install_branch_config_multiple_remotes() so that existing callers do not
need to be changed.

Signed-off-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c
t/t3200-branch.sh