]> git.ipfire.org Git - thirdparty/git.git/commit - object-name.c
sha1-name: replace unsigned int with option struct
authorJonathan Tan <jonathantanmy@google.com>
Tue, 1 Sep 2020 22:28:07 +0000 (15:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Sep 2020 21:39:17 +0000 (14:39 -0700)
commita4f66a7876f6979f0a3ac254173cbdaf0a2a55c3
tree1ca920e7d158082b9d37cfa79cb7b473a496d4a8
parent47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc
sha1-name: replace unsigned int with option struct

In preparation for a future patch adding a boolean parameter to
repo_interpret_branch_name(), which might be easily confused with an
existing unsigned int parameter, refactor repo_interpret_branch_name()
to take an option struct instead of the unsigned int parameter.

The static function interpret_branch_mark() is also updated to take the
option struct in preparation for that future patch, since it will also
make use of the to-be-introduced boolean parameter.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
refs.c
revision.c
sha1-name.c