File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ abort() {
2929while [ " $# " -gt 0 ]; do
3030 case " $1 " in
3131 --color ) colorize=1 ;;
32- --no-color ) colorize= ;;
32+ --no-color ) colorize=' ' ;;
3333 -h | --help )
3434 sed -ne ' /^#/!q;s/.\{1,2\}//;1d;p' < " $0 "
3535 exit 0
@@ -101,14 +101,16 @@ git diff "${base}...${head}" --diff-filter=DM --no-prefix -w -U0 | grep -v '^+'
101101 }
102102 END { print num_lines, name_length }
103103' | sort -n | {
104+ # shellcheck disable=SC2162
104105 read num_lines name_length
105106 if [ " $num_lines " -eq 0 ]; then
106107 color 31 " Warning: " >&2
107108 echo " no changed/removed lines found in the $base ...$head diff" >&2
108109 fi
109110
111+ # shellcheck disable=SC2162
110112 while IFS=$' \t ' read time sha author msg; do
111- date -r $time " +%Y-%m-%d" | tr -d $' \n '
113+ date -r " $time " " +%Y-%m-%d" | tr -d $' \n '
112114 printf ' '
113115 color 33 " ${sha: 0: 7} "
114116 printf ' '
You can’t perform that action at this time.
0 commit comments