mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
show all commit messages if no tag found
This commit is contained in:
parent
e101d825a2
commit
b89c12e79b
|
|
@ -238,6 +238,27 @@ commitList() {
|
|||
unset _ref _date _tag _tab
|
||||
|
||||
local _tags_list_keys_length="${#tags_list_keys[@]}"
|
||||
if [[ "${_tags_list_keys_length}" -eq 0 ]]
|
||||
then
|
||||
unset _tags_list_keys_length
|
||||
if [[ "$list_style" == true ]]; then
|
||||
printf "%s" "$(_fetchCommitRange "true")"
|
||||
else
|
||||
local title="$title_tag / $title_date"
|
||||
local title_underline=""
|
||||
|
||||
local i
|
||||
for i in $(seq ${#title}); do
|
||||
title_underline+="="
|
||||
done
|
||||
unset i
|
||||
|
||||
printf '\n%s\n%s\n' "$title" "$title_underline"
|
||||
printf "\n%s\n" "$(_fetchCommitRange "true")"
|
||||
fi
|
||||
return
|
||||
fi
|
||||
|
||||
local _final_tag_found=false
|
||||
local _start_tag_found=false
|
||||
local i
|
||||
|
|
|
|||
Loading…
Reference in a new issue