git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* branch description as a note?
@ 2024-12-11 10:39 Bence Ferdinandy
  2024-12-11 16:11 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Bence Ferdinandy @ 2024-12-11 10:39 UTC (permalink / raw)
  To: git

Hi,

so I've been wondering about branch descriptions being just a local
configuration. The only use-case I know for them is generating cover letters
and request-pull, although I could imagine maybe the maintainer uses branch
descriptions for storing the - well - branch descriptions for the "What's
cooking" emails and the merge commit messages. 

Now my problem with the description being a local configuration, is that
I often work on patches on two different computers. I can easily share my patch
notes with myself, but not the branch description. If these could be pushed and
fetched like a note, I think that would open up some other nice possibilities
as well, like having a standard place for MR/PR messages for forges, sharing
proposed merge commit messages, maybe other things.

For my personal issue of sharing branch descriptions with myself, I could
probably just make up a convention for myself, say using refs/notes/branches,
but it would be nice to have this built in, instead of the local config branch
description.

From usage perspective I could imagine a new `--branch` flag for notes, which
would tell `git notes` to operate on notes attached to branches instead of
specific commits, probably stored under refs/notes/branches by default. Maybe
add an `--edit-branch-note` to `git branch`. And of course have the option to
use this note instead of the description configuration wherever it makes sense.

What do you think?

Thanks,
Bence



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

end of thread, other threads:[~2024-12-12 10:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 10:39 branch description as a note? Bence Ferdinandy
2024-12-11 16:11 ` Junio C Hamano
2024-12-11 17:37   ` Konstantin Ryabitsev
2024-12-11 22:11     ` Bence Ferdinandy
2024-12-12  1:39     ` Junio C Hamano
2024-12-12  2:30       ` Konstantin Ryabitsev
2024-12-11 21:57   ` Bence Ferdinandy
2024-12-12  1:00     ` Junio C Hamano
2024-12-12 10:48       ` Bence Ferdinandy
2024-12-11 17:34 ` Justin Tobler
2024-12-11 22:02   ` Bence Ferdinandy
2024-12-12  1:52   ` Junio C Hamano
2024-12-12 10:57     ` Bence Ferdinandy
2024-12-11 20:13 ` Kristoffer Haugsbakk
2024-12-11 22:07   ` Kristoffer Haugsbakk
2024-12-12 10:48     ` Oswald Buddenhagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).