Thread View: linux.kernel.git
2 messages
2 total messages
Started by Ewout ter Hoeven
Sun, 15 Nov 2026 11:03
Re: [PATCH] headers: Preserve 'change-id' header in rebase / cherry-pick.
Author: Ewout ter Hoeven
Date: Sun, 15 Nov 2026 11:03
Date: Sun, 15 Nov 2026 11:03
29 lines
18989 bytes
18989 bytes
On 2026-04-07 at 23:28, brian m. carlson wrote:
> Absent some well-defined documentation describing what it means, I don't
> see how it could provide good value.
A concrete use case could be stacked pull/merge requests.
GitHub's stacked PRs (CLI in github/gh-stack) and GitLab's experimental
"glab stack" both have to answer "is this rewritten commit the same
change as before?" after every rebase. Without an identity that
survives rewrites they guess from branch names, recorded bases and
patch IDs, and the guesses fail in practice:
- Renaming a branch with plain "git branch -m" strands the stack,
because the tool tracks layers by branch name
(https://github.com/github/gh-stack/issues/423).
- When a lower layer is rewritten, its old commits are replayed onto
the new copies because patch IDs no longer match; one user reports
61 commits replayed, 53 of them already in the parent
(https://github.com/github/gh-stack/discussions/600).
- In a review of glab's stacked diffs, GitLab's Git (Gitaly) engineers
discussed moving towards change IDs for the same reason
(https://gitlab.com/gitlab-org/cli/-/issues/8040).
Each tool works around this with its own metadata, which plain git
commands then invalidate. A header that git preserves would let them
use git as the source of truth.
Re: [PATCH] headers: Preserve 'change-id' header in rebase / cherry-pick.
Author: "brian m. carlson"
Date: Sun, 15 Nov 2026 16:24
Date: Sun, 15 Nov 2026 16:24
46 lines
11646 bytes
11646 bytes
--YUXQPdstHNQkas1A Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2026-11-15 at 11:03:05, Ewout ter Hoeven wrote: > On 2026-04-07 at 23:28, brian m. carlson wrote: > > Absent some well-defined documentation describing what it means, I don't > > see how it could provide good value. >=20 > A concrete use case could be stacked pull/merge requests. >=20 > GitHub's stacked PRs (CLI in github/gh-stack) and GitLab's experimental > "glab stack" both have to answer "is this rewritten commit the same > change as before?" after every rebase. Without an identity that > survives rewrites they guess from branch names, recorded bases and > patch IDs, and the guesses fail in practice: I don't think that's going to be helpful there. Users can modify change-id headers in commits, so they can't be trusted as a source of unmodified data. Only if the server does the rebase can it have confidence that things haven't changed. Otherwise, a malicious user could get a review on v1 of a series and send out a completely different v2 with the same change-ids such that the server would honour the existing review and accept the malicious code. --=20 brian m. carlson (they/them) Toronto, Ontario, CA Speaking for myself only --YUXQPdstHNQkas1A Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- wr0EABYKAG8Fgmr53LcJEHwMSWKIh6KBRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z LnNlcXVvaWEtcGdwLm9yZypubcrOgtSsYcKx9MtXLAt6phqzEOgjT8w0vdD9qgBr FiEECCzmip28ZfuD0cORfAxJYoiHooEAADmcAP95gi1sWfwPy7cZg2jS4ubdCN9I +bRluE72wLj/IfT/zwEAo3YO1wqBVTdnRXE2KQp25xD0cPLmrTSGqdJeBA8WVwA= =llEe -----END PGP SIGNATURE----- --YUXQPdstHNQkas1A--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads