mirror of
https://github.com/tj/git-extras.git
synced 2026-09-14 17:36:25 -04:00
stamp: identifier is case insensitive for the replacement
This commit is contained in:
parent
705bb32a7a
commit
c9463bf6ef
|
|
@ -997,16 +997,17 @@ Issue FOO-456 #close
|
|||
Review https://reviews.foo.org/r/4567/
|
||||
```
|
||||
|
||||
Replace previous issues with a new one
|
||||
Replace previous issues with a new one
|
||||
(Note that the identifier is case insensitive)
|
||||
|
||||
```bash
|
||||
$ git stamp --replace Issue BAR-123
|
||||
$ git stamp --replace issue BAR-123
|
||||
|
||||
Fix timezone bug
|
||||
|
||||
Review https://reviews.foo.org/r/4567/
|
||||
|
||||
Issue BAR-123
|
||||
issue BAR-123
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ stamp() {
|
|||
# remove previous stamps with same ID from the commit message
|
||||
commit_msg=$(
|
||||
echo "${commit_msg}" \
|
||||
| grep --invert-match "^${ID}\b" \
|
||||
| grep --ignore-case --invert-match "^${ID}\b" \
|
||||
| cat --squeeze-blank
|
||||
)
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ With this flag, all the related stamps with the same identifier will be removed
|
|||
.nf
|
||||
|
||||
Replace all previous stamps in the last commit message that have the same identifier
|
||||
The identifier is case insensitive for this replacement
|
||||
.
|
||||
.fi
|
||||
.
|
||||
|
|
@ -94,17 +95,20 @@ $ git stamp Review https://reviews\.foo\.org/r/4567/
|
|||
.P
|
||||
Replace previous issues with a new one
|
||||
.
|
||||
.br
|
||||
(Note that the identifier is case insensitive)
|
||||
.
|
||||
.IP "" 4
|
||||
.
|
||||
.nf
|
||||
|
||||
$ git stamp \-\-replace Issue BAR\-123
|
||||
$ git stamp \-\-replace issue BAR\-123
|
||||
|
||||
| Fix timezone bug
|
||||
|
|
||||
| Review https://reviews\.foo\.org/r/4567/
|
||||
|
|
||||
| Issue BAR\-123
|
||||
| issue BAR\-123
|
||||
.
|
||||
.fi
|
||||
.
|
||||
|
|
|
|||
|
|
@ -91,7 +91,8 @@ With this flag, all the related stamps with the same identifier will be removed
|
|||
|
||||
<p> -r, --replace</p>
|
||||
|
||||
<pre><code>Replace all previous stamps in the last commit message that have the same identifier
|
||||
<pre><code>Replace all previous stamps in the last commit message that have the same identifier
|
||||
The identifier is case insensitive for this replacement
|
||||
</code></pre>
|
||||
|
||||
<h2 id="EXAMPLES">EXAMPLES</h2>
|
||||
|
|
@ -107,9 +108,9 @@ With this flag, all the related stamps with the same identifier will be removed
|
|||
$ git stamp Issue "FOO-456 #close"
|
||||
|
||||
| Fix timezone bug
|
||||
|
|
||||
|
|
||||
| Issue FOO-123
|
||||
|
|
||||
|
|
||||
| Issue FOO-456 #close
|
||||
</code></pre>
|
||||
|
||||
|
|
@ -122,24 +123,25 @@ $ git stamp Issue "FOO-456 #close"
|
|||
| Issue FOO-123
|
||||
|
|
||||
| Issue FOO-456 #close
|
||||
|
|
||||
|
|
||||
| Review https://reviews.foo.org/r/4567/
|
||||
</code></pre>
|
||||
|
||||
<p>Replace previous issues with a new one</p>
|
||||
<p>Replace previous issues with a new one<br />
|
||||
(Note that the identifier is case insensitive)</p>
|
||||
|
||||
<pre><code>$ git stamp --replace Issue BAR-123
|
||||
<pre><code>$ git stamp --replace issue BAR-123
|
||||
|
||||
| Fix timezone bug
|
||||
|
|
||||
| Review https://reviews.foo.org/r/4567/
|
||||
|
|
||||
| Issue BAR-123
|
||||
| issue BAR-123
|
||||
</code></pre>
|
||||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Damien Tardy-Panis <<a href="mailto:damien@tardypad.me" data-bare-link="true">damien@tardypad.me</a>></p>
|
||||
<p>Written by Damien Tardy-Panis <<a href="mailto:damien@tardypad.me" data-bare-link="true">damien@tardypad.me</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@ With this flag, all the related stamps with the same identifier will be removed
|
|||
|
||||
-r, --replace
|
||||
|
||||
Replace all previous stamps in the last commit message that have the same identifier
|
||||
Replace all previous stamps in the last commit message that have the same identifier
|
||||
The identifier is case insensitive for this replacement
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
|
|
@ -49,15 +50,16 @@ Link to its review page
|
|||
|
|
||||
| Review https://reviews.foo.org/r/4567/
|
||||
|
||||
Replace previous issues with a new one
|
||||
Replace previous issues with a new one
|
||||
(Note that the identifier is case insensitive)
|
||||
|
||||
$ git stamp --replace Issue BAR-123
|
||||
$ git stamp --replace issue BAR-123
|
||||
|
||||
| Fix timezone bug
|
||||
|
|
||||
| Review https://reviews.foo.org/r/4567/
|
||||
|
|
||||
| Issue BAR-123
|
||||
| issue BAR-123
|
||||
|
||||
## AUTHOR
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue