4 ms·
I don't think that your points are actually in conflict. If this is my source code, I want the whole history. I want that 10-year old commit that isn't used in
by crznp 4y ago
I don't think that your points are actually in conflict.
If this is my source code, I want the whole history. I want that 10-year old commit that isn't used in any current branch. A build machine may not need any history: it just wants to check out a particular branch as it is right now, and that works too.
But there is an intermediate case: Let's say that I have an issue with a dependency. I might check out that code and want some history to know what has changed recently, but I don't need that huge zip file that was accidentally checked in and then removed 4 years ago. If it were a consistent problem, perhaps you'd invent some sort of 'shallow' or 'partial' clone, something like this:
https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ https://github.blog/2020-12-21-get-up-to-speed-with-partial-...
- howinteresting 4y agoTrue, though shallow clones have performance issues: https://github.com/Homebrew/discussions/discussions/225 https://github.com/Homebrew/discussions/discussions/225