mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 09:58:47 -07:00
fix(changelog): also display commits from merged branches
This commit is contained in:
parent
0b809c8dc5
commit
7c5ab01a5f
@ -391,9 +391,7 @@ function main {
|
|||||||
|
|
||||||
# Get commit list from $until commit until $since commit, or until root
|
# Get commit list from $until commit until $since commit, or until root
|
||||||
# commit if $since is unset, in short hash form.
|
# commit if $since is unset, in short hash form.
|
||||||
# --first-parent is used when dealing with merges: it only prints the
|
command git rev-list --abbrev-commit --abbrev=7 ${since:+$since..}$until | while read hash; do
|
||||||
# merge commit, not the commits of the merged branch.
|
|
||||||
command git rev-list --first-parent --abbrev-commit --abbrev=7 ${since:+$since..}$until | while read hash; do
|
|
||||||
# Truncate list on versions with a lot of commits
|
# Truncate list on versions with a lot of commits
|
||||||
if [[ -z "$since" ]] && (( ++read_commits > 35 )); then
|
if [[ -z "$since" ]] && (( ++read_commits > 35 )); then
|
||||||
truncate=1
|
truncate=1
|
||||||
|
Loading…
Reference in New Issue
Block a user