Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get code line stats through this? #91

Open
adoin opened this issue Apr 21, 2023 · 0 comments
Open

How to get code line stats through this? #91

adoin opened this issue Apr 21, 2023 · 0 comments

Comments

@adoin
Copy link

adoin commented Apr 21, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant