node-gitlog
node-gitlog copied to clipboard
How to get code line stats through this?
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?