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

No. of commits differ #82

Open
jagtarsingh opened this issue Dec 26, 2017 · 0 comments
Open

No. of commits differ #82

jagtarsingh opened this issue Dec 26, 2017 · 0 comments

Comments

@jagtarsingh
Copy link

jagtarsingh commented Dec 26, 2017

Hello,

The # of commits obtained from the command line (git log --oneline | wc -l) is differ from the git_stat report. When looked into the the git_stats command log, found that the command it runs is:

git rev-list --pretty=format:'%H|%at|%ai|%aE' HEAD . | grep -v commit

git rev-list --pretty=format:'%H|%at|%ai|%aE' HEAD . | grep -v commit | wc -l
--> 30

git rev-list --pretty=format:'%H|%at|%ai|%aE' HEAD | grep -v commit | wc -l
--> 45

The dot after HEAD is the main issue. It takes the commits from the current folder. If I run the command manually without dot, it gives me the correct count.

Please let me know how can I remove the dot after the HEAD from it. I treid with the --tree option, but with no luck.

Thanks,
JS

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