for the function branch that you use for
git diff --stat dev..feature
it depends on the fact that there is no merger. See my post here: http://dymitruk.com/blog/2012/02/05/branch-per-feature/
--stat can take parameters. This is useful if you have a wider terminal. You can do --stat=200 to say that your display can hold 200 columns.
If you want to use this in a script, use --numstat . He will not cut the path.
source share