node-gitlog icon indicating copy to clipboard operation
node-gitlog copied to clipboard

How to get code line stats through this?

Open adoin opened this issue 1 year ago • 0 comments

Original command here git log --since=2023-03-01 --until=2023-04-01 --format='%aN' | sort -u | while read name; do echo -en "$name\\t"; git log --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\\n", add, subs, loc }' -; done I tried execSync but don't know how to solve the echo console. Can this js do this?

adoin avatar Apr 21 '23 09:04 adoin