add day name to date

when grouping by author -L, I found it hard to read YYYY-MM-DD, so added day name to that.
This commit is contained in:
jgtoriginal 2023-05-25 01:14:05 +01:00 committed by GitHub
parent 71d414eb4a
commit ebbeb34837
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -391,7 +391,8 @@ function changelogs() {
--date=short "${_author}" "$_since" "$_until" $_log_options $_pathspec \
| sort -u -r | head -n $_limit \
| while read DATE; do
echo -e "\n[$DATE]"
day=$(date -u -j -f "%Y-%m-%d" "$DATE" "+%A")
echo -e "\n[$DATE - $day]"
GIT_PAGER=cat git -c log.showSignature=false log \
--use-mailmap $_merges \
--format=" * %s (%aN)" "${_author}" \