Re: Is there "depth" control for pkgctl-repo-clone like "asp export" to get only the latest commit?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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/clone.sh#L175
[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-latest-revision-of-a-project

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux