mirror of
https://github.com/tj/git-extras.git
synced 2026-09-14 01:16:31 -04:00
Merge pull request #396 from tocker/bug/changelog-catch-head
Catch "HEAD -> master" when creating the changelog
This commit is contained in:
commit
7d1ede1022
|
|
@ -221,7 +221,7 @@ commitList() {
|
|||
# git v2.2.0+ supports '%D', like '%d' without the " (", ")" wrapping. One day we should use it instead.
|
||||
_tag="${_tag# }"; _tag="${_tag//[()]/}"
|
||||
# trap tag if it points to last commit (HEAD)
|
||||
_tag="${_tag##HEAD, }"
|
||||
_tag="${_tag#HEAD*, }"
|
||||
# strip out any additional tags pointing to same commit, remove tag label
|
||||
_tag="${_tag%%,*}"; _tag="${_tag#tag: }"
|
||||
# strip out tags that are actually feature branches (git-flow support)
|
||||
|
|
|
|||
Loading…
Reference in a new issue