Skip to content

Commit 7e6c5f7

Browse files
committed
Check if the change was a part of a release.
1 parent f8d2278 commit 7e6c5f7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
* [List all the alias and configs.](https://github.com/git-tips/tips#list-all-the-alias-and-configs)
8080
* [Make git case sensitive.](https://github.com/git-tips/tips#make-git-case-sensitive)
8181
* [Auto correct typos.](https://github.com/git-tips/tips#auto-correct-typos)
82+
* [Check if the change was a part of a release.](https://github.com/git-tips/tips#check-if-the-change-was-a-part-of-a-release)
8283

8384
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
8485
<!-- @doxie.inject end toc -->
@@ -545,5 +546,10 @@ git config --global core.ignorecase false
545546
git config --global help.autocorrect 1
546547
```
547548

549+
## Check if the change was a part of a release.
550+
```sh
551+
git name-rev --name-only <SHA-1>
552+
```
553+
548554
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
549555
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,7 @@
240240
}, {
241241
"title": "Auto correct typos.",
242242
"tip": "git config --global help.autocorrect 1"
243+
}, {
244+
"title": "Check if the change was a part of a release.",
245+
"tip": "git name-rev --name-only <SHA-1>"
243246
}]

0 commit comments

Comments
 (0)