mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
scripts/add_maintainers.pl: set double dashes for long options
Current script shows message:
Don't forget to add the subject and message to ...
Then perform:
git send-email -to xen-devel@lists.xenproject.org ...
which has wrong option '-to'.
It may be confused for user.
Set double dashes for longer options to avoid that.
Fixes: e1f912cbf7 ("scripts/add_maintainers.pl: New script")
Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@epam.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
This commit is contained in:
1 parent
6960bf546e
commit
64be4fecd7
1 file changed
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# Add maintainers to patches generated with git format-patch
|
# Add maintainers to patches generated with git format-patch
|
||||||
#
|
#
|
||||||
# Usage: perl scripts/add_maintainers.pl [OPTIONS] -patchdir <patchdir>
|
# Usage: perl scripts/add_maintainers.pl [OPTIONS] --patchdir <patchdir>
|
||||||
#
|
#
|
||||||
# Prerequisites: Execute
|
# Prerequisites: Execute
|
||||||
# git format-patch ... -o <patchdir> ...
|
# git format-patch ... -o <patchdir> ...
|
||||||
@@ -126,7 +126,7 @@ WORKFLOW:
|
|||||||
Step 1: git format-patch ... -o <patchdir> ...
|
Step 1: git format-patch ... -o <patchdir> ...
|
||||||
Step 2: ./scripts/add_maintainers.pl -d <patchdir>
|
Step 2: ./scripts/add_maintainers.pl -d <patchdir>
|
||||||
This overwrites *.patch files in <patchdir> but makes a backup
|
This overwrites *.patch files in <patchdir> but makes a backup
|
||||||
Step 3: git send-email -to xen-devel\@lists.xenproject.org <patchdir>/*.patch
|
Step 3: git send-email --to xen-devel\@lists.xenproject.org <patchdir>/*.patch
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
# Constants and functions related to LOCATIONS
|
# Constants and functions related to LOCATIONS
|
||||||
@@ -371,7 +371,7 @@ if ($has_cover_letter) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
print "Then perform:\n".
|
print "Then perform:\n".
|
||||||
"git send-email -to xen-devel\@lists.xenproject.org ".
|
"git send-email --to xen-devel\@lists.xenproject.org ".
|
||||||
$patch_dir.'/'.$patch_prefix."*.patch"."\n";
|
$patch_dir.'/'.$patch_prefix."*.patch"."\n";
|
||||||
|
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|||||||