public inbox for tools@linux.kernel.org
 help / color / mirror / Atom feed
* Using "b4 prep" with Stacked Git
@ 2026-03-17 15:01 Chuck Lever
  2026-03-17 15:26 ` Paul Moore
  0 siblings, 1 reply; 10+ messages in thread
From: Chuck Lever @ 2026-03-17 15:01 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: users, tools

Hi Konstantin -

I'm a long-time Stacked Git and b4 user and I'm hunting for a tool to
juggle the many data items involved with posting kernel patch series
for review. "b4 prep" seems to fit that bill but it has some issues
when it comes to large cover letters with Stacked Git.

The branch-description strategy is the least-bad option for StGit
right now, but it's fighting git's design -- git config was never
meant to hold multi-paragraph prose, and there's no way to tell StGit
"don't print the branch description in stg branch --list."

A file-based strategy would solve all three problems cleanly. Something like:

.git/b4-cover/<branchname>/subject
.git/b4-cover/<branchname>/body
.git/b4-cover/<branchname>/changelog
.git/b4-cover/<branchname>/recipients

Or b4 could use a single file with delimiters or structured with JSON.

Advantages over the existing branch-description strategy:
- Each piece is a plain text file, editable with $EDITOR directly
- stg branch --list output stays clean
- Changelog and recipients are structurally separated from the cover
body, so --auto-to-cc can write to recipients without risking
corruption of the larger prose items
- Trivial to version-control the cover letters separately if desired

The tracking metadata (change-id, revision, base-branch) could stay in
b4-tracking in git config -- that data is small and
machine-manageable. The cover-strategy mechanism already exists, so
adding a new file or work-tree-file strategy would slot in naturally.

I'm asking before prototyping to see if you've already considered this
idea, might have another idea, or might have something already in the
works.

-- 
Chuck Lever

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-03-21 20:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17 15:01 Using "b4 prep" with Stacked Git Chuck Lever
2026-03-17 15:26 ` Paul Moore
2026-03-17 15:48   ` Chuck Lever
2026-03-17 18:57     ` Paul Moore
2026-03-17 15:54   ` Miquel Raynal
2026-03-17 16:51   ` Toke Høiland-Jørgensen
2026-03-17 17:45     ` Chuck Lever
2026-03-18 14:44       ` Toke Høiland-Jørgensen
2026-03-20 16:25     ` Konstantin Ryabitsev
2026-03-21 20:53       ` Toke Høiland-Jørgensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox