Krzysztof Jurewicz is a user on capitalism.party. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
I would be very happy to find some way to do --shallow without destroying existing commit relations.

That's not a metaphor for anything. I'm talking about #git.

@clacke Well, --shallow does not change commit hashes, does it?

@krzysiekj It adds grafts to truncate the chain. I just want it to download less, not disregard the parent if I happen to already have it.
Krzysztof Jurewicz @KrzysiekJ

@clacke There is --depth parameter to the clone command.

@krzysiekj Yes. And it truncates the repo. If I have commit asdf1234 and I fetch --depth=1 asdf9876, which has asdf1234 as parent, it still says asdf9876 has no parent and asdf1234 becomes an orphaned commit, picked up at the next gc (unless it's directly by a branch or tag). Even though it's there in the repo, when you look at asdf9876 git will say the parent is not present.