Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git multiple subject prefix with format-patch

I wanted to add more then one subject prefix to my patch while using the format-patch option of git.

The subject should look something like

[Qemu-devel] [PATCH] linux-user/qemu.h Changed ..........

How to do this?


Doing

git format-patch --subject-prefix="Qemu-Devel PATCH" .....

Results in

[Qemu-Devel PATCH] linux-user/qemu.h Changed ..........
like image 379
Haris Avatar asked Sep 01 '25 04:09

Haris


1 Answers

You could do this:

git format-patch --subject-prefix="Qemu-Devel] [PATCH"

The beginning and end square brackets will be added automatically resulting in

Subject: [Qemu-Devel] [PATCH] ...

If you had more than 2 subject prefixes:

git format-patch --subject-prefix="Qemu-Devel] [Something-Else] [PATCH"
like image 105
J. Titus Avatar answered Sep 02 '25 17:09

J. Titus