env.sh: patched() compares full blob hashes #48

Manually merged
github merged 1 commit from github-bot/gh-48 into main 2026-12-01 20:58:43 +00:00 AGit
Owner

@⁠SemmerSky on GitHub · 2026-11-30 22:58 UTC · original
SemmerSky:fix/patched-full-index → main · +2 −2 · 1 files · 1 commits · merged 2026-12-01 20:55 UTC

patched() hashes git diff output, which abbreviates blob hashes to a length git picks per repo (7 or 8+ chars as the object count grows). When that length changes between writing .git/um-patch and the next check, setup.sh stops with "deps/<name> has changes the patch does not" although the content is identical. Hit during a mesa rebuild.

Fix: --full-index on both git diff calls, so the output no longer depends on core.abbrev.

Tested: same diff hashes equal with core.abbrev=7 and 12; in a real checkout ./setup.sh mesa → once the message above (stamp written with short hashes), tools/patch.sh mesa (patch file byte-identical), then ./setup.sh mesa passes.

Note: existing checkouts see the message once after this lands; tools/patch.sh <name> clears it.

**@⁠SemmerSky** on GitHub · 2026-11-30 22:58 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/48) `SemmerSky:fix/patched-full-index` → `main` · +2 −2 · 1 files · 1 commits · merged 2026-12-01 20:55 UTC `patched()` hashes `git diff` output, which abbreviates blob hashes to a length git picks per repo (7 or 8+ chars as the object count grows). When that length changes between writing `.git/um-patch` and the next check, `setup.sh` stops with `"deps/<name> has changes the patch does not"` although the content is identical. Hit during a mesa rebuild. Fix: `--full-index` on both `git diff` calls, so the output no longer depends on `core.abbrev`. Tested: same diff hashes equal with `core.abbrev=7` and `12`; in a real checkout `./setup.sh mesa` → once the message above (stamp written with short hashes), `tools/patch.sh mesa` (patch file byte-identical), then `./setup.sh mesa` passes. Note: existing checkouts see the message once after this lands; `tools/patch.sh <name>` clears it.
git diff abbreviates blob hashes, and the length can differ between runs
(7 vs 8 characters as the object count grows). setup.sh then saw a
different diff for identical content and aborted with "deps/<name> has
changes the patch does not". --full-index makes the output independent of
the abbreviation length.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:42:11 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-30 22:58 UTC · original · edited 2026-11-30 22:59 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T22:59:57.086369Z 16b8452 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-30 22:58 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/48#issuecomment-7294554052) · edited 2026-11-30 22:59 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"16b8452049ee5202a450dd8ca93b05b24a014250","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-30T22:59:57.086369Z">2026-11-30T22:59:57.086369Z</relative-time> | `16b8452` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
github-bot referenced this pull request from a commit 2026-12-01 20:58:42 +00:00
github manually merged commit 80de7ff234 into main 2026-12-01 20:58:43 +00:00
github-bot referenced this pull request from a commit 2026-12-01 21:04:22 +00:00
github-bot referenced this pull request from a commit 2026-12-04 19:05:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.