]> git.99rst.org Git - git.git/commit
clone: make it possible to specify --tags
authorToon Claes <redacted>
Thu, 6 Feb 2025 06:33:30 +0000 (07:33 +0100)
committerJunio C Hamano <redacted>
Thu, 6 Feb 2025 20:23:53 +0000 (12:23 -0800)
commitbc26f7690a318fd0a875bfd8d56c70e1ccb79ccb
treee5de4e66e3f92c19e4598025a9058f4cd6d5f19a
parent7f420a6bda9704684ccc924070e8404dac55ffdf
clone: make it possible to specify --tags

Option --no-tags was added in 0dab2468ee (clone: add a --no-tags option
to clone without tags, 2017-04-26). At the time there was no need to
support --tags as well, although there was some conversation about
it[1].

To simplify the code and to prepare for future commits, invert the flag
internally. Functionally there is no change, because the flag is
default-enabled passing `--tags` has no effect, so there's no need to
add tests for this.

[1]: https://lore.kernel.org/git/CAGZ79kbHuMpiavJ90kQLEL_AR0BEyArcZoEWAjPPhOFacN16YQ@mail.gmail.com/

Signed-off-by: Toon Claes <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-clone.txt
builtin/clone.c
git clone https://git.99rst.org/PROJECT