On Mon, Jan 30, 2023 at 6:51 PM Guillem Jover <guil...@hadrons.org> wrote:
> On Mon, 2023-01-30 at 12:43:09 +0300, Sergey Bugaev wrote: > > it would be nicer if you explicitly specified what source tree this > > patch is for, for instance: [PATCH glibc] or [PATCH gnumach] instead > > of just [PATCH]. (There is the --subject-prefix option in git > > format-patch for this.) > > Right, and in case this is not obvious, you can configure it > permanently per repo with something like: > > $ git config format.subjectprefix "PATCH gnumach" > Thanks Guillem and Sergey! I ended up with a git alias to format patches with the subject prefix as [PATCH <repo>]: git config --global alias.format-patch-repo '!git format-patch --subject-prefix="PATCH $(basename $(git rev-parse --show-toplevel))"' > Thanks, > Guillem >