On 21/05/2023 00:21, David C. Rankin wrote:
Does pkgctl-repo-clone simply fetch the latest commit, or does it fetch the history as well? It fetches the history of the repository aswell, as it fully clones the archive[0]. 'asp export' provided only the latest commit without the prior versions history, etc. Can pkgctl-repo-clone do that? So far it cannot I think, but as the tool is still very young, its not complete in quite some areas. Feel free to open a feature request for something like a --depth option for pkgctl repo clone on the repo[1].
If you only want part of the history you can use git directly, as I very recently documented it on the wiki[2]. It seems if you combine the commands from the article with the --depth 1 option from git[3] it should only fetch the latest revision. cheers, gromit [0] https://gitlab.archlinux.org/archlinux/devtools/-/blob/master/src/lib/repo/c... [1] https://gitlab.archlinux.org/archlinux/devtools/-/issues/new [2] https://wiki.archlinux.org/title/Arch_Build_System#Using_git_directly [3] https://stackoverflow.com/questions/1209999/how-to-use-git-to-get-just-the-l...