> On Feb 22, 2021, at 8:41 PM, o...@eigenstate.org wrote:
>
> Quoth Lyndon Nerenberg (VE7TFX/VE6BBM) <lyn...@orthanc.ca>:
>> Steffen Nurpmeso writes:
>>
>>> It can even be as small as
>>>
>>> #?0|kent:unix-hist$ du -sh .
>>> 179M .
>>>
>>> when not including all the new FreeBSD things (for which i at
>>> least track the FreeBSD git repository directly):
>>
>> Okay, so what's the magic incantation to clone just that subset
>> of branches? git-clone(1) is not helpful ...
>>
>> --lyndon
>
> On unix, this should do it:
>
> git clone --single-branch \
> --branch Research-V4-Snapshot-Development \
> https://github.com/dspinellis/unix-history-repo
>
> On plan 9, hot off the press:
>
> git/clone -b $branch \
> https://github.com/dspinellis/unix-history-repo
>
> Unfortunately, git9 has no fetch specs, so keeping a
> *set* of branches will be a bit clunky
For multiple branches try something like the following:
git clone https://github.com/dspinellis/unix-history-repo.git --depth 1 -b Epoch
Without the --depth 1 flag git insists on fetching all 1.9GB of git objects!
But +fetch= lines in .git/config's are not fixed up. As these branches are not
likely to change, that is probably ok.
Next run the following, editing out the branches you don't want.
This list is everything except FreeBSD branches. Amounts to 188MB.
git fetch origin
386BSD-0.0-Snapshot-Development:386BSD-0.0-Snapshot-Development\
386BSD-0.1-Snapshot-Development:386BSD-0.1-Snapshot-Development\
386BSD-0.1-patchkit:386BSD-0.1-patchkit\
386BSD-0.1-patchkit-Import:386BSD-0.1-patchkit-Import\
386BSD-Release:386BSD-Release\
BSD-1-Snapshot-Development:BSD-1-Snapshot-Development\
BSD-2-Snapshot-Development:BSD-2-Snapshot-Development\
BSD-3-Snapshot-Development:BSD-3-Snapshot-Development\
BSD-4-Snapshot-Development:BSD-4-Snapshot-Development\
BSD-4_1_snap-Snapshot-Development:BSD-4_1_snap-Snapshot-Development\
BSD-4_1c_2-Snapshot-Development:BSD-4_1c_2-Snapshot-Development\
BSD-4_2-Snapshot-Development:BSD-4_2-Snapshot-Development\
BSD-4_3-Snapshot-Development:BSD-4_3-Snapshot-Development\
BSD-4_3_Net_1-Snapshot-Development:BSD-4_3_Net_1-Snapshot-Development\
BSD-4_3_Net_2-Snapshot-Development:BSD-4_3_Net_2-Snapshot-Development\
BSD-4_3_Reno-Snapshot-Development:BSD-4_3_Reno-Snapshot-Development\
BSD-4_3_Tahoe-Snapshot-Development:BSD-4_3_Tahoe-Snapshot-Development\
BSD-4_4-Snapshot-Development:BSD-4_4-Snapshot-Development\
BSD-4_4_Lite1-Snapshot-Development:BSD-4_4_Lite1-Snapshot-Development\
BSD-4_4_Lite2-Snapshot-Development:BSD-4_4_Lite2-Snapshot-Development\
BSD-Release:BSD-Release BSD-SCCS:BSD-SCCS\
Bell-32V-Snapshot-Development:Bell-32V-Snapshot-Development\
Bell-Release:Bell-Release
Research-PDP7-Snapshot-Development:Research-PDP7-Snapshot-Development\
Research-Release:Research-Release\
Research-V1-Snapshot-Development:Research-V1-Snapshot-Development\
Research-V2-Snapshot-Development:Research-V2-Snapshot-Development\
Research-V3-Snapshot-Development:Research-V3-Snapshot-Development\
Research-V4-Snapshot-Development:Research-V4-Snapshot-Development\
Research-V5-Snapshot-Development:Research-V5-Snapshot-Development\
Research-V6-Snapshot-Development:Research-V6-Snapshot-Development\
Research-V7-Snapshot-Development:Research-V7-Snapshot-Development\
usr/src/BSD-SCCS-Import:usr/src/BSD-SCCS-Import
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T476a1d7b83269775-M164190580e3d2b269501e9f0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription