diff --git a/Commands.md b/Commands.md index 6e57189..1eefefc 100644 --- a/Commands.md +++ b/Commands.md @@ -974,7 +974,7 @@ Reference the issues numbers from your bug tracker ```bash $ git stamp Issue FOO-123 -$ git stamp Issue "FOO-456 #close" +$ git stamp Issue FOO-456 \#close Fix timezone bug diff --git a/bin/git-stamp b/bin/git-stamp index 0f48553..1f0877c 100755 --- a/bin/git-stamp +++ b/bin/git-stamp @@ -12,7 +12,7 @@ init_variables() { usage() { cat << EOF -usage: git ${COMMAND} [] [] +usage: git ${COMMAND} [] [] Options: -r, --replace replace all previous stamps with same id @@ -73,7 +73,7 @@ parse_options() { done ID="$1" - MSG="$2" + MSG="${@:2}" } diff --git a/man/git-stamp.1 b/man/git-stamp.1 index ab723fb..207ed90 100644 --- a/man/git-stamp.1 +++ b/man/git-stamp.1 @@ -7,7 +7,7 @@ \fBgit\-stamp\fR \- Stamp the last commit message . .SH "SYNOPSIS" -\fBgit stamp [] []\fR +\fBgit stamp [] []\fR . .SH "DESCRIPTION" Lets you amend the last commit with a stamp message\. @@ -59,7 +59,7 @@ Reference the issues numbers from your bug tracker .nf $ git stamp Issue FOO\-123 -$ git stamp Issue "FOO\-456 #close" +$ git stamp Issue FOO\-456 \e#close | Fix timezone bug | diff --git a/man/git-stamp.html b/man/git-stamp.html index 501a9d4..776ee3d 100644 --- a/man/git-stamp.html +++ b/man/git-stamp.html @@ -76,7 +76,7 @@

SYNOPSIS

-

git stamp [<options>] <id> [<message>]

+

git stamp [<options>] <id> [<messages>]

DESCRIPTION

@@ -105,7 +105,7 @@ The identifier is case insensitive for this replacement

Reference the issues numbers from your bug tracker

$ git stamp Issue FOO-123
-$ git stamp Issue "FOO-456 #close"
+$ git stamp Issue FOO-456 \#close
 
 | Fix timezone bug
 |
@@ -141,7 +141,7 @@ $ git stamp Issue "FOO-456 #close"
 
 

AUTHOR

-

Written by Damien Tardy-Panis <damien@tardypad.me>

+

Written by Damien Tardy-Panis <damien@tardypad.me>

REPORTING BUGS

diff --git a/man/git-stamp.md b/man/git-stamp.md index ada53fa..d7d8975 100644 --- a/man/git-stamp.md +++ b/man/git-stamp.md @@ -3,7 +3,7 @@ git-stamp(1) -- Stamp the last commit message ## SYNOPSIS -`git stamp [] []` +`git stamp [] []` ## DESCRIPTION @@ -30,7 +30,7 @@ Commit message is Reference the issues numbers from your bug tracker $ git stamp Issue FOO-123 - $ git stamp Issue "FOO-456 #close" + $ git stamp Issue FOO-456 \#close | Fix timezone bug |