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

addition to "open branch" to include number of lines changed. #5

Open
sofusalbertsen opened this issue Jan 30, 2019 · 4 comments
Open
Assignees

Comments

@sofusalbertsen
Copy link

In addition to showing the amount of time, a given commit haven't been integrated, one could also measure how much (as in changed lines of code) change is laying on a given branch:

git log --numstat --pretty="%H" commit1..commit2 | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'

@Neppord
Copy link
Contributor

Neppord commented Feb 5, 2019

Thanks @sofusalbertsen I also think that the size of a branch would be interesting, with multiple measures.

Using diff might be a better choice then log? Are we interested in the size of the potential merge or are we interested in the number of times lines are changed, even the same line?

We should also be aware that to many stats will make it harder to find what is important for the user.

I think still that age is more important then "size".

@sofusalbertsen
Copy link
Author

I see this as an army knife of utills that can give you insights, where each metric should have a reason/description about what this metric can tell you.
But maybe this is scope creep for your repo's intention?

@Neppord
Copy link
Contributor

Neppord commented Feb 5, 2019

No, I don't think it's scope creep. I thinking it's a good idea and that we need to add it as new command or a flag on a the existing command.

This could also be a good oppertunity to make all the different endpoints "true" git commands by giving them the correct name. Like "git-branch-diffsize" or other?!

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

No branches or pull requests

3 participants