Skip to content

Commit

Permalink
Alias --message to --cover-letter
Browse files Browse the repository at this point in the history
If you think about git-publish as a tagging tool then the concept of a
tag message makes sense.

If you think about git-publish as a email sending tool then the concept
of a cover letter makes sense.

They are both the same thing so alias the option for familiarity with
git-format-patch(1).

Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
stefanha committed Nov 3, 2014
1 parent e01d5e4 commit 3d6fdc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ To refrain from creating a tag message::

$ git publish --no-message

For convenience these options are also available as --cover-letter and
--no-cover-letter just like in git-format-patch(1).

Editing tag messages without publishing
---------------------------------------

Expand Down
8 changes: 4 additions & 4 deletions git-publish
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ def main():
help='return to shell before sending emails')
parser.add_option('-n', '--number', type='int', dest='number', default=-1,
help='version number [auto-generated by default]')
parser.add_option('--no-message', dest='message', action='store_false',
help='do not add a message')
parser.add_option('-m', '--message', dest='message', action='store_true',
help='add a message')
parser.add_option('--no-message', '--no-cover-letter', dest='message',
action='store_false', help='do not add a message')
parser.add_option('-m', '--message', '--cover-letter', dest='message',
action='store_true', help='add a message')
parser.add_option('--profile', dest='profile_name', default='default',
help='select default settings profile')
parser.add_option('--pull-request', dest='pull_request', action='store_true',
Expand Down

0 comments on commit 3d6fdc1

Please sign in to comment.