aboutsummaryrefslogtreecommitdiff
path: root/repo.go
Commit message (Collapse)AuthorAgeFilesLines
* Delete everything, I'm redesigning this.Gravatar Runxi Yu2026-02-201-160/+0
| | | | | I'll stop using a flat package and make things much more modular. And also experiment with streaming APIs so large blobs don't OOM us.
* Revert "commitgraph: Add basic commit-graph implementation"Gravatar Runxi Yu2026-02-201-12/+1
| | | | This reverts commit 1ea061c92ca6ad435c00bea458b8f24a5e1a822a.
* commitgraph: Add basic commit-graph implementationGravatar Runxi Yu2026-01-301-1/+12
|
* hash: Use a hashAlgorithmDetails struct for single source of truth v0.1.2Gravatar Runxi Yu2026-01-271-18/+5
| | | | | | hashAlgorithm's are assumed to be valid; methods on invalid hashAlgorithms will panic from out-of-bounds read when it's not found in hashAlgorithmTable and that's expected and intended.
* More changes from the import URL updateGravatar Runxi Yu2026-01-191-1/+1
|
* repo: Drop hashSize and use hashAlgo.size()Gravatar Runxi Yu2026-01-171-6/+3
|
* hash: Key by algorithm, not sizeGravatar Runxi Yu2026-01-171-10/+14
|
* Revert "Add initial support for multi pack indexes"Gravatar Runxi Yu2025-11-201-10/+0
| | | | | | | This reverts commit 6f8acbf1503d2fa1ef705d35a743fc6b279942e5. Apparently my MIDX support is broken and it breaks some repos... it'll be added back when ready.
* Disable per-object validation during readsGravatar Runxi Yu2025-11-171-2/+2
| | | | | | | In general, git inflates the packed objects and recomputes the object hash before accepting them into hte object database during remote operations. But when simply inflating/parsing the objects for read from the local object store, it does not recompute the hash.
* pack: Use a Go map with a mutex instead of a sync.Map for packfilesGravatar Runxi Yu2025-11-171-25/+13
| | | | | Very few writes, you don't typically see more than a dozen packfiles. A ton of reads. Go maps are the obvious choice.
* Revert "Compute checksum when reading packfiles"Gravatar Runxi Yu2025-11-171-1/+1
| | | | | | | This reverts commit 1dcb92427c23d0a8b23c0154b892243c749afa5a. Yeah this should be part of the network protocol rather than being done on *every read*.
* Compute checksum when reading packfilesGravatar Runxi Yu2025-11-171-1/+1
|
* Fix some docs and API typesGravatar Runxi Yu2025-11-161-0/+10
|
* repo is thread safeGravatar Runxi Yu2025-11-161-0/+3
|
* Documentation overhaulGravatar Runxi Yu2025-11-161-5/+8
|
* Move config to its own packageGravatar Runxi Yu2025-11-161-1/+3
|
* Unexport Repository.HashSizeGravatar Runxi Yu2025-11-161-7/+7
|
* Remove repo.RootGravatar Runxi Yu2025-11-161-5/+0
|
* Rename ObjType -> ObjectTypeGravatar Runxi Yu2025-11-161-1/+1
|
* Ignore error on f.Close()Gravatar Runxi Yu2025-11-161-1/+3
|
* Add basic support for parsing configuration filesGravatar Runxi Yu2025-11-161-5/+36
| | | | Now support for switching hash algorithms should be complete!
* Make the API more consistentGravatar Runxi Yu2025-11-161-27/+27
|
* hash: Make fewer helper functions need explicit hash length fieldsGravatar Runxi Yu2025-11-161-0/+49
|
* Revert "hash: Generic hash-algorithm API"Gravatar Runxi Yu2025-11-161-20/+15
| | | | | | | This reverts commit 94bfb1fa147f80e6ec39009d41fc2f853925e0a5. Generics actually kinda suck for these purposes... once you look at it from the user's perspective.
* hash: Generic hash-algorithm APIGravatar Runxi Yu2025-11-161-15/+20
|
* Support multiple hash sizes in one buildGravatar Runxi Yu2025-11-161-3/+10
|
* Add initial support for multi pack indexesGravatar Runxi Yu2025-11-151-0/+10
|
* Initial commitGravatar Runxi Yu2025-11-131-0/+82