1045
submitted 6 months ago* (last edited 6 months ago) by PumpkinDrama@reddthat.com to c/opensource@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] toastal@lemmy.ml 2 points 6 months ago* (last edited 6 months ago)

When a repository is cloned lazily, darcs adds an entry in _darcs/prefs/sources, so whenever you use a commands which needs to work with all the patches, darcs try to fetch the missing patches using the entries from the cache, since the original repository was added to sources, it is also added to the cache (since darcs relies on the source file to load the cache).

https://darcs.net/Internals/CacheSystem#lazy-repositories-and-the-cache-system

You have all the code & fetch patches as needed. Not the same as a shallow clone, but if trying to not download the whole project history, this serves a smiliar goal.

this post was submitted on 12 May 2024
1045 points (98.2% liked)

Open Source

31349 readers
144 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS