]> git.ipfire.org Git - thirdparty/git.git/commit
refspec: introduce struct refspec
authorBrandon Williams <bmwill@google.com>
Wed, 16 May 2018 22:57:51 +0000 (15:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 May 2018 21:19:42 +0000 (06:19 +0900)
commit6d4c05785946e302e611be9ac1f5ca0b5ada9214
tree94e5e42fc1b0cc1895d23457b13d2bb504b5d5ae
parent3eec3700fdc4d5b0a33729d45e7fb9735ed7e0f5
refspec: introduce struct refspec

Introduce 'struct refspec', an abstraction around a collection of
'struct refspec_item's much like how 'struct pathspec' holds a
collection of 'struct pathspec_item's.

A refspec struct also contains an array of the original refspec strings
which will be used to facilitate the migration to using this new
abstraction throughout the code base.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refspec.c
refspec.h