I would like to show how many changes (insertions+deletions) I made on a feature branch. Is there a way to get a summary of the git log --stat output for the changes between 2 commits (branch root / tip).
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
for a feature branch you want to use
this relies on not doing back merges. See my post here: http://dymitruk.com/blog/2012/02/05/branch-per-feature/
--statcan take parameters. This is useful if you have a wider terminal. You can do--stat=200to say that your display can accommodate 200 columns.If you want to use this in a script, use
--numstatinstead. It will not truncate paths.