Skip to content

Commit a8a0a81

Browse files
committed
Add option --skip-final-edit
Of we are scripting our workflow we might be perfectly happy with what we last set. Allow the final edit to be skipped and keep the tag with the message as is. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
1 parent 93d6ba2 commit a8a0a81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

git-publish

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,9 @@ def parse_args():
649649
default=False, help='Send patches using separate git-send-email cmd')
650650
parser.add_argument('--send-email-args', action='append', default=[],
651651
help="Arguments forwarded to git-send-email")
652+
parser.add_argument('--skip-final-edit', dest='skip_final_edit',
653+
action='store_true', default=False,
654+
help='Skip final edit step (useful for scripting)')
652655

653656
return parser.parse_known_args()
654657

@@ -830,7 +833,7 @@ branch.%s.pushRemote is set appropriately? (Override with --no-check-url)''' %
830833
'',
831834
blurb_template])
832835
tag_message += cl_info
833-
anno = options.edit or message
836+
anno = (options.edit or message) and not options.skip_final_edit
834837
tag(tag_name_staging(topic), tag_message, annotate=anno, force=True)
835838

836839
if options.clear_prefix:

0 commit comments

Comments
 (0)