shlib.sh: set var_have_git_2101 for Git v2.10.1 or later
commit94b2ef4804cf42a9f6f5e48aee25eb7d4d21019a
authorKyle J. McKay <mackyle@gmail.com>
Mon, 11 Dec 2017 09:12:01 +0000 (11 01:12 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 11 Dec 2017 09:12:01 +0000 (11 01:12 -0800)
tree5a447dc2eb997d12ecb40d20eee4ea06a0b54f44
parent8cdb1836b6d6efa0b953f9bf109956f0a2e4ae4f
shlib.sh: set var_have_git_2101 for Git v2.10.1 or later

Prior to Git's b773ddea2cd3b08c ("pack-objects: walk tag chains for
--include-tag", 2016-09-07, v2.10.1), using the --include-tag
option with pack-objects could result in a corrupted pack.
(It might contain tags that reference unknown tag objects.)

Therefore even though the --include-tag option has been available
since Git v1.5.5, provide a convenient variable that can be tested
to avoid using the option when it could still produce corrupted packs.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
shlib.sh