Count characters, not just lines
This commit is contained in:
parent
cf80c7e5b1
commit
379534ce60
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ if [[ ! -f "${result_file}" ]]; then
|
|||
|
||||
# Calculate the legnth of the commit message.
|
||||
commit_message=$(GIT_PAGER=cat git -C "${REPO}" show "${commit_id}" -s --format=%B)
|
||||
commit_message_length=$(echo "${commit_message}" | wc -l)
|
||||
commit_message_length=$(echo "${commit_message}" | wc --chars)
|
||||
|
||||
# Store the commit IDs and the message length.
|
||||
echo "${commit_message_length} ${commit_id}" >> "${result_file}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue