Fromager's gitutils.git_clone feature does not behave like pip's VCS support. Our helper is less powerful, harder to use, slower, and does not cover all use cases.
The major differences are:
We can make our clone API faster and easier to use:
- clone with blob filter and
--no-checkout
git checkout {ref}, which can be any git reference like tag, branch, ref, or commit
- update submodules recursively with a blob filter
That would reduce the argument list to three arguments (output directory, clone url, ref) and remove the need for git_options in PBI.
Fromager's gitutils.git_clone feature does not behave like pip's VCS support. Our helper is less powerful, harder to use, slower, and does not cover all use cases.
The major differences are:
We can make our clone API faster and easier to use:
--no-checkoutgit checkout {ref}, which can be any git reference like tag, branch, ref, or commitThat would reduce the argument list to three arguments (output directory, clone url, ref) and remove the need for
git_optionsin PBI.