4 ms·
>I don't see any obvious flaws with Git. Large files and long histories hinder its total dominance in the game and art industries. Because of git's shortcomin
by jayd16 7y ago
>I don't see any obvious flaws with Git.
Large files and long histories hinder its total dominance in the game and art industries. Because of git's shortcomings polyrepo is a near necessity not simply a stylistic choice. LFS is a bolt on solution that could/should have better support.
- phodge 7y ago> Because of git's shortcomings polyrepo is a near necessity I'm intrigued by this claim. I've come to the opposite conclusion - that monorepo is near necessity with git because there's no tools for branching/rebasing multiple repos at once.
- bb88 7y agoI think he's talking about large files there, which is an issue in GIT btw. I would use it for storing and syncing libraries of large images for my photography, if it were feasible.
- thayne 7y agoAfter using both I can say both have problems. Polyrepos lack tools for working with multiple repos simultaneously, and require more attention to versioning. Monorepos have longer histories, and the large number of objects can hurt performance. Which one you should use depends on which downsides are less impactful for your use case.
- hinkley 7y agoGit stores the diffs in chronological order doesn’t it? I recall reading about someone doing a commercial implementation where the commits are stored in reverse chronological order. I’d been thinking that was github but I’ve never been able to find the article again.
- fjfaase 7y agoGit does not store differences between files, but packs (versions of) files (to save disk space) in single .pack files.
- cesarb 7y agoGit's model (which it copied from monotone IIRC) is not diff-based, it's snapshot-based. That is, commits are not stored as a diff to the previous commit, but as the whole state of the tree plus a pointer to the previous commit(s). As an optimization, when it packs several objects together in a pack file, it can store objects as a delta to other (possibly unrelated) objects; there's a whole set of heuristics used to choose which objects to delta against, like having the same file name. And yes, one of these heuristics does have an effect similar to "reverse chronological order"; see https://github.com/git/git/blob/master/Documentation/technical/pack-heuristics.txt https://github.com/git/git/blob/master/Documentation/technic... for the details.
- Already__Taken 7y ago> LFS is a bolt on solution that could/should have better support. Like gitlabs own web ide that seems to ignore LFS rules.