Repository navigation
Reintegrate upstream Git changes and speed up hidden walks - #3234
Draft
Sebastian Thiel (Byron) wants to merge 8 commits into
Draft
Sebastian Thiel (Byron) wants to merge 8 commits into
Sebastian Thiel (Byron) wants to merge 8 commits into
Conversation
Sebastian Thiel (Byron)
force-pushed
the
reintegrate-git
branch
from
November 23, 2026 10:12
989ed1d to
c315f55
Compare
Git gives the push-tracking selector a short spelling for symmetry with
`@{u}`. Accept it case-insensitively using the existing sibling-branch
parser so both spellings resolve through the same remote and refspec
logic, including a following reflog selector.
The parser regressions failed before the fix. The full `gix-revision`
test suite and the `gix` sibling-branch tests passed afterward, including
the push cases with SHA-256. A build from the pinned upstream Git
snapshot resolved both new spellings identically to `@{push}` across
the same 60 combinations of configuration, branch, and spelling.
The Linux lint job flagged two redundant closures in the new push
selector assertions under `-D warnings`. Pass `gix::Reference::name`
directly. The focused Clippy check and sibling-branch tests pass.
Source: `git/git` `72c41c3ee0bc8f0e12f21f0c55bd9d07d19f75f6`
## Upstream review recorded in the ledger
### Record Git Meson and CI integration decisions
The first upstream topic after the saved Git baseline avoids redundant C
compilation, fixes shell-completion test setup, refreshes dependency
wrappers, and prevents GitLab Runner cleanup from hanging. Gitoxide uses
Cargo libraries and the Rust test harness, generates completions from
Clap, and provisions its Windows jobs through GitHub Actions.
The merge's installer resolution retains the credential-helper workaround
without restoring the obsolete Rust MSI step. Both are specific to Git's
GitLab provisioning.
Reviewed committed patches against the Cargo manifests, CLI completion
entry points, and CI workflow, and verified that every source prefix is
unique across both checkouts.
Source commits from `git/git`:
- `d8e1ba5c4d6f178d9322d8007130eb88b2d35c45`
- `cc839e97a3dc15cbe280303d397f3c471801eebe`
- `ae24379dd46b92734043ddcec47079f26afe3d3a`
- `3d7418e351a2c50bcf804b8d57a4a442757fb8a5`
- `47780704699b83a54caa23e0e69c1e3af84c49d2`
- `e492974847e182abc111506c0d2c1efd454e9686`
- `ce4a600322fa2c302e354755f9331f04d4242edd`
- `1c1256682a54d6738880e11ed2edf4b36757ef6c`
Git evicts a closed pack's delta entries so a reused allocation address cannot return a stale result. Gitoxide's cache was keyed by a path-derived or object-store slot ID that can likewise be used when a pack is reopened or replaced. Pack locations still use store IDs, while decoding now uses a process-local key assigned on open and never recycled. Custom `DecodeEntry` implementations must treat the incoming pack key as opaque. Decoding falls back to uncached reads if the key space is exhausted. The integration regression records the keys used while decoding a valid fixture delta and fails before the change. The `gix-pack` and `gix-odb` suites, Rust 1.95, WASM, and the small CLI configuration passed. The pinned Git snapshot's `verify-pack` confirmed the fixture delta. Source: `git/git` `8d596ea8e77711ab0109e301f71da0929bca6582` ## Upstream review recorded in the ledger ### Review Git merge, reflog, and stash changes Git fixes output handling for external merge drivers, brings its reftable reflog offsets into line with the format specification, and merges stashed index changes in memory. Gitoxide's Rust merge pipeline already propagates output read failures. Reftable reflog encoding and native stash application are prerequisites for the remaining fixes. Checked the merge resolutions and Gitoxide implementations. The date and external-driver tests passed, and `gix merge file` returned an I/O error for missing driver output after both a clean and conflicting exit. A readable empty result succeeded. Source commits from `git/git`: - `bb5979706a7abeb185ec14419aef3cf7dab29c5c` - `4f956cf43ad8f57181df11506298d0f8d511d08a` - `54fd0d4c5e3d69a3024720121cbe7d88b6838b68` - `a68cca9953cf2e9ef64f355455164025bae0b188` - `08ab14b084561e400a320719c53dcc3924e5e0f8` - `c17b2d9f6b5a4d1194e0a0f9751fb3dfb565d6e4` - `f97936288dabcba0d85bb2d5128a8b4dce1014e7` - `e14e2b6cf2db2ebde3cb5c4d953899c5f014253e` - `1ee477ab508d4a6bc127264aed3d6ba68cbf9a9d` - `f22cc52e9df3c08a15c082abf41595516e160294` - `a28d2bfe19586dd1dd066c30f93581b48bbdcbc8` - `3c7a31204ff383acf47c4a088ce711676bd7252f` - `25b334d8dbcae2683e60484b026a84eda4aa8c22` - `c9a589810288c4ca9716fda54497df49484a9c81` - `3c00e11eabd0dbbd9e9c78e23acfe83f5f065e2f` - `5b0456361d23bf6ffe9539dd6f323a02c69c14b4` - `81db32ddce564ab4a4e61692bd027d239dccb266` - `0c94f6297dd7d977d468cdedc71c9f4e280a1ad3` - `3a7995913ea654b2c33105e9852d108880845310` - `704069929493c28b6d45357b309b243c78213682` - `b15661a2cd35ec4825be0dd9b69ac41bbd2157b3` - `8ae4c185a6d65533d0941ca39de1b98821ba7496` - `b78604666654a2a75b2d3df2e89295e2fcbaf78e` ### Review upstream CLI and documentation changes The upstream topics update `git var`, contributor discovery, command help, range-diff notes, and user documentation. Gitoxide exposes structured identity and repository APIs and generates shell help from Clap. Distinct note selection remains relevant once there is a native patch-series formatter with range-diff summaries. Reviewed each topic's patches and merge resolutions against its Gitoxide entry points, including the ported push-tracking alias. Validated the classification format and source prefix uniqueness. Source commits from `git/git`: - `5e54624a8edfa8cba1b636c0b34dd58e4b13bf7e` - `e19f0779c67f0a003907d275b9b66f9b8003806d` - `09726e777e98ef1c9f5b025321dd60ff751a392a` - `598588c15584a28c62fbb12d4f6bba57f159fbb0` - `0930ad7aab7b17273fd6274da8cdcc0a6ab8c205` - `b837e5f4bc1577f267edfec5459babafc156d7ed` - `a9bd346d8b6570a950724d4196224a493b038243` - `07cc531ed3e3320d64fc8b4c1274a6f958093d2f` - `7a7d4c4613241be873b38c3a9d15e510161b93bb` - `1c4ee0aaa152e00e73549d6359db061c0a13cc77` - `4a2e53930b7a765aa97e11eba9dcc131b1ae4afc` - `a69a982f48a172cf9f3382e0e502ff6e1a005419` - `4e399f027c21eeb9398198101532957e289e0f20` - `778c73948a471841b780cf220dfd37a710e51f9c` - `605bb24465327b3692b947c21312e54c5ceb07be` - `c5f8f607191c55e360cee8a23aa6b722e4d8dd65` - `e37840933fdcb8c708d9d5a960128a4341b5991e` - `42017ff9792f75fec560b984edcc969eecbad15c` - `0bde462668817d8575000017106d9c50ece5fb41` - `4ddd9f289debef7878f737b05de9a56989152b33` - `5008bde9900db114f106e3262108ce726b879a11` - `a116545aade814fab03085f6f67f0aa411b90959` - `28699cf58187fbfb367fcb02d337e93cac9e79e4` - `c2593bc14c8b0c3d3a3347d3db94ebbe3b9f399b` - `f57c9a73884400380bddd172acc88b569834f909` - `4811dabed745f117eabc9f79ecf4cb40cdf324c6` - `2341e1d74c495d8853f6ff401d811b2a3b5b239c` - `c7860da7db9e9a9ce462bf511b36c5b21b544cbf` - `d8d02ce25f2722f19a367da7f0f30e93ca9bfc6e` - `e2d64bd041a7836e25eca884a48932133ed51b8d` - `cc6a26fab556d5ca8d3ca51a7c48b6bd2d503307` - `fbbc33935a25cef04374de911b7b9f73e6e8c70c` - `3fb69375f116b31cc47942f6662343cbd12b046e` - `6faaf59b8b977c263ab534c5b33ac4768d68b565` - `02c88ed90a9a8dbb65fd29b62b61d9055905cbf6` - `49e646f1c9a2f130690b92773fe3c2095dcbbacb` - `a3059f04e360993ec265de7c8afbac83a772f5ab` - `c51408889c3b372814bc20b9431c3b74d0d268eb` ### Review upstream ref and commit-graph changes Git reduces reference formatting and limits post-fetch commit-graph updates to commits reached from newly updated refs. Gitoxide already passes through valid LF packed records and provides direct graph generation lookup. Updating remote HEAD during fetch and writing incremental graphs require capabilities beyond the current fetch path. Checked the upstream patches and their merge resolutions against Gitoxide's fetch, reference, and commit-graph implementations. The packed-reference passthrough and commit-graph access tests passed. Source commits from `git/git`: - `4c32d2259b1342abcdd1a6927e0869da374d02a9` - `86129fddb7e68efa8a6da682e6eced3ade4d943b` - `80502091b8e7b9d3ed773482ea7d5e2dad72b484` - `a61035fab9299de25ef46bbaedccd08734ce66c9` - `fc70f528aa1927012538052014d7ea784b5a38fa` - `72e75ffee70f2e898ae687734aa109f559b39e5c` - `cef2d8c4cbca930c4f57e81739fe1663be7ab18d` - `f2b7511422361667175a17236f09e0a24c278931` - `778d260c316b9c72b06ad5edcb5535e7ee4a7804` - `623d2c71255977544086c9be76dfeff43cdbaf88` ### Review Git for Windows restricted-process startup Upstream avoids loading User32 on every invocation so Git can start with Win32k calls disabled. Gitoxide does not use that poll shim. Its Windows CLI's console-event dependency still calls User32, which must be addressed before validating restricted startup. Reviewed the committed patch, both merge parents, and the resolved Windows feature tree and console backend source. Source commits from `git-for-windows/git`: - `fc94ecab694db219fddcee7807aceef4bb1caf5b` - `e766978a9db5cdf196fdf3aaa63541e02ca513d6` ### Review upstream object-store preparation Git moves object-directory and quarantine responsibilities into its files backend. Gitoxide already resolves alternate paths in the file store and uses an owned in-memory overlay for temporary merge writes. The stale-cache merge resolution preserves both test cases, and the cache correctness change was ported separately. Reviewed the source topics against the dynamic store, alternate resolution, and temporary object handling. The object database suite passed, including the linked-store and alternate-resolution tests. Source commits from `git/git`: - `6948b044581f0f1e397c5b95580c01974c7c77e2` - `45b1324139d0428348a15ac09fd58f47f9435476` - `8db128e611a7a9fa8e47f383e31128cc4a47ceb7` - `4a9e8cab7db78eace06ecb86b5932dbd48a933c7` - `5c869c96a4e4d9f494699e69f06fff9e68f0b5ba` - `f80a79e23345c647209c33701df0e608696325ae` - `622a625abb97c8f3df091fde6a655950386c1cea` - `a26ff4e576de7478e2fefd938bcc57951a2ffb0a` - `6066be88b4a311cb3134d51f43db4ea10d08da2b` - `c96b05a9c26b5edb3e8c1b9491b386ddc70035f8` - `0ba59c845312f5b098b4ab27ae2f60988954d7b5` ### Review upstream status, signing, and blame changes Git improves merge guidance, signed history rewrites, and default blame ignore lists. Tix already signs rewrites and replayed descendants with the configured key. Merge guidance and default ignore-revs discovery depend on native continuation and ignored revision support. Compared the upstream code, tests, and merge resolutions with Gitoxide's status output, terminal width dependency, signature fixtures, replay implementation, and blame options. Source commits from `git/git`: - `b6d18b5d68a0c8682b53c5e18d9c58421356e2c7` - `3bba248c2c2d57c4ba566cb1f103f744795132c5` - `b1be790f3871c400269fc576cf0002650e636d5a` - `b4b80b4885038ebe3f3e61a7ae2961ab1991a75f` - `47fdf2208c5b94c8cc01c106b8f7c85efb91c926` - `01de14365ddfb37ec0745bd4661c469e9ba6a684` - `ad72032c8db3c5bf73e00a7e2cf4e257b652dabf` - `cc97a912eb14151fa704147e4c748038bd1ab0c4` - `470c6e9fe2f5b3c260a757ef95ec3dab45710248` - `49403519294975852624352ba976b5359027cd5a` - `60a86bfc98d615b609dbe856d9bc401b2f034216` - `1c0cec6657bf901090544479246ca9d7428ffad4` - `8f352ee2dc57db650acbfb04e04307257bb814ce` - `60e16b0387ae9100952a789ac5fa21127cebb28a` - `7ac84b7267798310719815dc0c16230587cb7028` - `7e34d8174dcda3435d1404c9a30bef46afe6c13e` - `ff099c5dc980119dcad70572b8f14ea89500cc06` - `52890fcfd41dc90c513ea375c146a54ff5f9d277` - `eab342c82b6c89d8cb8885400ee232f9ee17a6fc` ### Review upstream release metadata commits Git's draft batch notes and point release markers summarize the source history. Gitoxide generates independent notes and derives its version through `build.rs`. The underlying behavioral changes remain individually tracked by their source commits. Verified all patches are limited to `Documentation/RelNotes`, `GIT-VERSION-GEN`, and the `RelNotes` pointer. Compared Gitoxide's release procedure and checked source prefix uniqueness. Source commits: - `37b3475fb530c14109211faca33716a173db61ed` from `git/git` - `8d1b215c01512b9658d4525c54ff9b9245f9a7e8` from `git/git` - `b9e5cff1803ab24582201ef059516eb16014b9d9` from `git/git` - `50fe5cc63f9cd6e89b87a2c9ccf96a444f4cfdb7` from `git/git` - `ebdc087dc99d68bb340c282b2ba5f722def28d19` from `git/git` - `750f5de7dfe9a4062f95088212b063f189d50e91` from `git/git` - `0ffa3e35c7c82ab8d0de226149fb03b3f7674d05` from `git/git` - `fb255012acbcbe81189cb8014da0280b09c66ecc` from `git/git` - `3c60ef1e38ee80337025a1b908327f7879386329` from `git/git` - `fbd2d1e765da4d2931cadc4c62d3ca5d5b590e7e` from `git/git` - `dcb6cee7fbe72a181a8f2064ab5edb9ddf4af723` from `git/git` and `git-for-windows/git` - `56332d1945e81bf0745a1e4544f9d23e975bfa93` from `git/git` and `git-for-windows/git` - `c5dabd6987d121f2e50ab451aeef4c80ac2a9058` from `git/git` and `git-for-windows/git` - `ed7e96191f58aec5c7778b8de35e1cc955b353f5` from `git/git` and `git-for-windows/git` - `9291f4cfbfb53956ddd8a041acab08be2b2d62f4` from `git/git` and `git-for-windows/git` - `c060ae533689be0c9f3520f9258a0a2641e64f37` from `git/git` and `git-for-windows/git` - `03b41523c576f26ad34085378717a0c1b287470f` from `git/git` and `git-for-windows/git` - `9354c5f04055932909b660a237905b360cba195a` from `git/git` - `7fb6055e678f800320d8ab8cd8f201d9493d1ba0` from `git/git` - `eacee88cf8a27cb141c64433465da2542806facf` from `git/git` - `e1ec09b23c8e0deb21a0b95ac5996422277395d4` from `git/git` - `f7de81456940dd6f3274e461149bba12965de609` from `git/git` ### Review upstream initialization and validation changes Git improves directory creation, pack verification, and test configuration while fixing several Git-specific maintenance and formatting cases. Gitoxide already applies repository sharing after creating the leading directories, verifies the threshold boundary, and parses configuration from unsigned byte slices. Checked the upstream topics and merge resolutions against Gitoxide code and tests. Verified a packed blob exactly at the configured threshold with both implementations. Record the ZIP dependency, reftable, fast-import, and maintenance prerequisites for later work. Source commits from `git/git`: - `fbe541727e551c7ed3601eaf661ee8724d3a1256` - `b428ea54ef89719b19b3ca877cc708e664a7c630` - `a6d5ea281e756a174328c21da2bc68a1a7491c8c` - `8f17ac5de4e139c9edb02a3f1473aa5f7e1757f7` - `8f74abc2de1c05e6a9d4eede0e95b41e57bbd120` - `b2adfd39a042d2b1e7f90b1b6072358c2e117190` - `0419d7d9c71a7b5fbe2e7594fb6cc26f43dc748b` - `a9456705f1884c95e597b25df9435b602caa07e5` - `adbe9b43f42be1eb6421d669bf135b488f52e2a0` - `c1cdd3151e981064397e0fa72c5e8a830e1f0250` - `775dc1673e683b3df84bb7ef07fc6f4daedba403` - `56e490a9b501fdf5bcc47721e9cb2698395ac9b0` - `bd52c7687460f979a1c8900529d111b535c84963` - `5a7bcf02d0a77e536f21dd2c0c19d3bb876e2d77` - `3375f64ad4eda54eb177df113c679e86aa4dc0ae` - `7097ce8cbe74cdbe8b04fd102b277cb726c43e8f` - `a8dc3aa765f9b823b34b45e664399a10bcf83fa1` - `8f3199b6605d43cd87b05193de9f704b2a23c239` - `8173407ebc437228052e447e745f6815558868dd` - `1476be81b7a1949ba7eff479ea789ba22232ffcc` - `3fff230cf5ee355772c618e6d0cdf2ed489ddb61` - `832192728cd82deb5739d2610ba8a66dd9d44caf` - `e2e5e9f7405ce6753840b5ff3d16fe08833023c5` - `5cdaf2b1a712f9dd641cacdbbce844efca767698` - `de8036be8984418d122ae1279758516fd93975c7` - `a212c33c906bc83e4d2e946e7c3926b179414f3a` - `ba963df28289f7a9da3e760e69098764cfa6341d` - `1ce26936d17dd8a95365b1194568def378753471` - `84733a6de430aaeaf37025599d65af9445e63ccd` - `e4bf62f7f7015ee73bef6932d2fae7af3ffac401` - `5f6b6aa3ab4ab9f68271055da51da6746cba707e` - `8814f276c03fa4ba78d24313d21fa90b231af1b7` - `facedc705c8aaafbca31f5047ba0b877490008b3` - `8fe963845e7c7fb1865061ae9c8dd5fb8c3ba4ff` - `cc7510f3dbec5828df12ff3dfae7864efc62e37b` - `3a5cd30544d1d88a13bc00b1e2d02a740dc0c39d` - `074aaaf4f03a3f291cb2f055343a9215699ec8e7` - `21e0d223ed9df3199c0d802586b153aa9f778bf1` - `24e00cde8660d2973fce45bf7bd51b96fb04374b` - `dd2e9fb957da59470cdd22ba13069d77fbea0ff9` - `16bd683014deb5361a4210a7a9b37759ae28b877` - `7d55df77906d563583d0adb1d7606b7ecefbbe63` - `7f4e8cd95684bc99e5aba90b36a89d542b2bfe22` - `af456b19bafea9a82c267be3f27a623dac5cd3bc` ### Review upstream lazy-fetch and conflict-label changes Git adds governed lazy fetches during upload-pack and preserves original labels when recreating checkout conflicts. Gitoxide's current object lookup is local, and its worktree checkout has no conflict-recreation mode. Record the corresponding prerequisites. Reviewed the source topics and merge resolutions against Gitoxide's object lookup, transport, trust, and checkout implementations. Source commits from `git/git`: - `010fd39c3e230bc529e3c5ac7ec9eb36a7e8ab77` - `96715284f4c2d08fd8eaf1ca2b4344e9e612b46d` - `42896803342a649df195c95af127627a03d534f0` - `4360734e907c9c92e72217a8ba9bdc1989f3c3a5` - `85c7f5e7dac12e31444e9bab95e1af7fa74955eb` - `d9c4679fa88988cefe1e378d6bb6c953436b56e6` - `ac6889a969aa928ae3e8a85be5327b8fa42f4f8e` - `63ea7cd6744b42aa7b62b1694c95a5823de897db` - `d5f4e42f02214b5d5af23578a4ad8de66427840d` - `b26dc1274c00cea4e35b6ca2e5e360f363ba23b4` ### Review pack publication and index behavior Git moves ownership of protective pack markers to publication and makes an optional index refresh tolerate lock contention. Gitoxide preserves an existing marker and still publishes the pack. Revisit aborting publication on marker contention once Gitoxide supports native receive-pack quarantine transactions. Index-to-tree writeback, tracking-branch switching, and hook dispatch also have prerequisites. Reviewed upstream behavior, tests, and merge resolutions against the pack writer, index, configuration, and worktree entry points. The cumulative pack, object database, revision and tracking suites passed. Source commits from `git/git`: - `440b7035bbe0ce9a5b65722da288e82e8ef415ef` - `30e6f5e4e6a517fbbf78d23fb2e56614271d47f6` - `071f2e36bcbaf81ed4ebed2e272afe483849b5b0` - `c5eda93f27194004f39abcae8d570e88d92d86eb` - `c3fc96de739bf1a85734677171537f2016b5e6da` - `cb9cccc84362b397bff234f9eb03ce766061928c` - `b2608c4076803aff8e7bbd72564e189b5200a018` - `84bea4324a2eb396bafe4ad27c5066107a2fc1fe` - `5e106cb22b6b0ecb2a7c45cf7a82fbfeb4ee2960` - `21bb64feefa3ca4a5982075781421fc4f98d92b6` - `dfb7f49776848c90ee825be20afa1944b424c971` - `b07099fff9401316b0e55c43f8dde46ddf0e7423` - `cc3b09a046f47e56a0906e16bd3ff0230083438a` - `d6d2d8557c327170a2d4d14896f929f755dfa213` - `980e4de64134a1bb16b63cd9c0be9a184b532f1d` - `96eb94a122cc634bc909bcca008113c5f3080a1e` - `8f3d6ad89f419a62eef3e3335237e679e531f256` - `a04194e134223cdbc15f58d0307b80df76b43ef8` - `91ef176b8fb99f0c47986afbc44dbd54eaa9f880` - `d6370f765ea2a76890eb3b8df402d62ea7fbcaca` - `4ec526671145224633e13e4359089385d03c5ee0` - `ad74e02417f36e993aa5d1e497a29389f275986d` - `c3764d15e61ab622628b94fec204bc2acfb8aee2` - `3a7784d0d5467ada7526356673c6653416ace302` - `aa139fdc67a042ff6bb183faf64ef7b767ad3f1a`
A sweep can record many source decisions between ports. Include those decisions in the next port, fold trailing rows into the final port, and use one ledger commit for a sweep with tracking changes and no ports. Preserve source citations and review state when consolidating commits.
Receive-side validation needs to inspect incoming objects before the pack becomes visible in the object database. Reuse the streaming bundle writer to prepare a pack and its index, then let the caller inspect the staged bundle while it still owns the temporary files. Publication acquires the destination `.keep` exclusively before installing either file. Return an owned guard so the caller can keep the marker through ref updates and release it afterward. Discard staging on contention and allow a retry to reuse the pack after an index write failure. Preserve the direct bundle writers' `index-pack` behavior. Verify empty pack trailers and keep read-ahead bytes out of staged bundles so the published data matches the verified pack checksum. This prepares the pack-publication boundary for native `receive-pack` quarantine, tracked against `git/git` commit `b07099fff9401316b0e55c43f8dde46ddf0e7423`. Validated the pack and object-store suites, blocking fetch tests, Clippy, Rust 1.95, and Windows and WASM builds.
Equal IDs answer `is_ancestor()` without loading either input commit. When the merge-base walk leaves at most one candidate, return it directly and skip the pass that clears flags, revisits parents, and sorts the results. Check that equal IDs leave the graph empty with and without a commit-graph. The revision suites passed for SHA-1 and SHA-256, and the repository revision integration tests passed.
GitButler's oplog enumerates each stack head and additional ref against
the same base. A fresh `with_hidden()` walk loads metadata to paint the
frontier and looks up the parents again during the visible traversal.
Overlapping tips repeat that work across a batch.
Add `Repository::hidden_walk_cache()` and opt into it with
`Platform::all_with_hidden_cache()`. The cache belongs to one repository
handle and pins its optional commit-graph. Recompute paint flags and the
frontier for every walk, including date cutoffs, and reuse owned metadata
in both painting and visible traversal. Shallow history, replacements,
explicit graph overrides, boundaries, and other sort orders use the
regular walk. Retained metadata is bounded by the caller's batch
lifetime.
On the synthetic 64-tip overlap fixture with a 100 MiB object cache,
median release time over 21 batches was:
GitButler helper Stock hidden walk Cached walk
With commit-graph 45.63 ms 4.52 ms 1.68 ms
Without commit-graph 73.45 ms 6.81 ms 3.25 ms
The cache retained about 115 KiB of requested heap per batch, excluding
mapped pages. With the object cache disabled and no commit-graph, stock
took 37.02 ms and the cached walk took 3.21 ms. The 100 MiB single-walk
control was effectively unchanged. Earlier paint-only measurements
isolated the metadata reloads and showed identical queue pops and parent
edges. The final API also reuses already loaded parents during iteration
and opens the commit-graph once per batch.
Verify each timed tip against `git rev-list` and compare ordered walk
info across changing tips and exclusions, merges, first-parent walks,
shallow and replacement histories, and graph policy overrides. Reuse
matches the existing no-generation date cutoff even after preloading
older hidden commits. That cutoff can differ from exact reachability
under clock skew.
Sebastian Thiel (Byron)
force-pushed
the
reintegrate-git
branch
from
November 23, 2026 10:18
c315f55 to
05d5dfa
Compare
Starship needs the checked-out branch's ahead/behind counts even when
repository trust is reduced. Resolving `@{upstream}` used to construct
the remote, which can reject an unrelated push URL, and its trust
filter skips the local tracking configuration in this case.
`Repository::branch_upstream_tracking_ref_name()` reads the branch's
remote, its first merge entry, and fetch refspecs as local metadata.
Explicit section filters still apply. Respect the first matching
mapping and exclusions, with a direct merge-ref fallback for `.`.
Reuse this resolver in the existing fetch tracking lookup with its
usual trust filter, including when parsing `@{upstream}`.
`Repository::head_ahead_behind_counts()` combines this lookup with the
existing graph query and returns `None` when there are no upstream
counts to report. Use the shared lookup in `gix status --ahead-behind`
so local upstreams follow the same rules as named remotes.
Compare tracking names and counts with Git for local and mapped
upstreams at both trust levels, including a malformed push URL.
Verify exclusions, missing refs, detached and unborn HEADs, and
caller-supplied section filters. Run the full `gix` integration suite,
the new tests with SHA-256 fixtures, workspace Clippy, a Rust 1.95
minimal-feature check, and a small CLI status smoke test.
Git decodes the repository hash width at the start of each shallow record. The whole-line decode rejected a boundary followed by a space. With both hash formats enabled, another 24 hex digits could also turn a SHA-1 boundary into an unrelated SHA-256 ID. Require the hash kind in `gix_shallow::read()` and decode the prefix within Git's record size limit. Pass the repository kind when walking history and the negotiated kind when fetching. Compare revision walks with Git for both hash formats, including space, hex, and text suffixes. Check that the same malformed records are rejected. Run the shallow traversal and fetch tests, both protocol suites, the crate doctest, a Rust 1.95 SHA-256-only check, and Clippy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tasks
Created by Codex on behalf of Byron. Byron will review before this is ready to merge.
Summary
@{p}as shorthand for@{push}, including when followed by a reflog selector.DecodeEntryimplementations must treat the pack key as opaque..keepbefore installing the pack or index and returns a guard the caller can hold through ref updates.Repository::hidden_walk_cache()andPlatform::all_with_hidden_cache(). Each tip recomputes the frontier and keeps the stock walk order.Context
The upstream sweep checks which Git and Git for Windows changes are relevant to Gitoxide. It records 214 decisions, including two ports and 26 postponed candidates. The reintegration skill now folds tracking into the port commits and creates a single tracking commit for a sweep with ledger updates and no ports.
Git's receive-side regression requires publication to stop when another operation owns the matching
.keep. The staged API supplies that publication step for future callers. The ledger keeps the upstream case postponed until a nativereceive-packquarantine transaction can use it and exercise the end-to-end regression.GitButler's oplog snapshot enumerates each stack head and additional ref against the same base. In a synthetic release benchmark with 64 distinct overlapping tips and a 100 MiB object cache, median enumeration fell from 4.52 to 1.68 ms with a commit-graph and from 6.81 to 3.25 ms without one. The cache retained about 115 KiB of heap for the batch. The commit message includes the single-walk control and the existing clock-skew behavior. Exploratory benchmark and reproduction commands
Validation
gix-revisionsuites with SHA-1 and SHA-256, the repository revision integration tests, and the sibling-branch regressions. Compared@{p}and@{push}against the pinned upstream Git build across 60 combinations of configuration, branch, and spelling.gix-packandgix-odbsuites, blocking fetch integration tests, and Clippy. The pack changes also passed Rust 1.95, Windows and WASM compile checks, and the small CLI configuration check.git rev-listand compared ordered results across changing tips and bases, including merge, shallow, and replacement-ref histories. Ran the revision and traversal test suites for the final API. Timed snapshot payload writes separately.User Prompts