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

Open Source

31393 readers
86 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 6 months ago (1 children)

Looks meh why? Not interested it the Patch Theory for version control?

[–] [email protected] 2 points 6 months ago (1 children)

If all data is stored as patches, then no shallow cloning

[–] [email protected] 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.