News for hackers. Stuff that matters.
Re:Git-quick-stats – A simple and efficient way to access va... by forgotpwtomain on Monday January 16, 2017 @07:47PM (#13414337)
I think this is a bad interface. Showing a menu that clears the terminal rather than letting one use a specific command e.g. `git quick-stats commits` or `git quick-stats authors` is very annoying. If anything the menu should be a special option e.g. restricted to `git quick-stats menu`.
Re:Git-quick-stats – A simple and efficient way to access va... by daveguy on Monday January 16, 2017 @08:16PM (#13414457)
I wouldn't call it a bad interface. Although it is definitely orthogonal to the git interface. It isn't officially part of git.
Re:Git-quick-stats – A simple and efficient way to access va... by Groxx on Monday January 16, 2017 @04:10PM (#13413075)
Neat. I may end up using this.

fwiw as feedback:

- 1 would be far more useful to me if it suggested reviewers based on the files changed in this commit / branch / ?. probably true for most large projects.

- 7 is a thing I made myself as well (though yours is noticeably faster), and I LOVE it. glad to see it appearing elsewhere :)

- what Zikes said. non-interactive input is a must for script-ability (e.g. to add an alias to output one option).

- easily readable awk and bash... nice work. scripts like this are really handy for teaching people about sane complex bash scripting. I'll spread it around at work a bit :)

Re:Git-quick-stats – A simple and efficient way to access va... by netcraft on Monday January 16, 2017 @04:17PM (#13413123)
agreed re: #7, heres another project I use that just does that: https://github.com/paulirish/git-recent
Re:Git-quick-stats – A simple and efficient way to access va... by Goopplesoft on Monday January 16, 2017 @04:36PM (#13413246)
I have the following aliased to gbl:

    git for-each-ref --sort=-committerdate refs/heads/
With formatting:

    git for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(color:cyan)%(authorname)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))'
Re:Git-quick-stats – A simple and efficient way to access va... by Zikes on Monday January 16, 2017 @03:54PM (#13412914)
I like what this offers, however I would prefer to be able to access each individual "report" via a direct command as opposed to a menu. It would make it much more composable.
Re:Git-quick-stats – A simple and efficient way to access va... by rndstr on Monday January 16, 2017 @05:17PM (#13413516)
If you look at the code they are all oneliners so you could just add aliases
Re:Git-quick-stats – A simple and efficient way to access va... by Zikes on Monday January 16, 2017 @05:30PM (#13413617)
Certainly, and this project could take on a structure which enables that sort of usage. A really great project with similar utility is https://github.com/tj/git-extras, which I think could provide a good model for refactoring git-quick-stats.
Re:Git-quick-stats – A simple and efficient way to access va... by d33 on Tuesday January 17, 2017 @06:18AM (#13416581)
This could really use an asciinema showcase: https://asciinema.org/
Re:Git-quick-stats – A simple and efficient way to access va... by dguido on Monday January 16, 2017 @04:27PM (#13413180)
I want this for email! As far as I can tell, there is no great open-source tool for processing my mail archive and giving me similar stats. Everyone wants me to hand over a fully-privileged OAUTH token to some random person's website, and then it never gives me the stats I want.
Re:Git-quick-stats – A simple and efficient way to access va... by edraferi on Monday January 16, 2017 @06:00PM (#13413799)
What format do you have your mail archive in? What analytics are you interested in? Most of the ones I've seen focus on basic social network analysis tasks.

Those tools ask for credentials because most folks have their archive on the cloud.

Re:Git-quick-stats – A simple and efficient way to access va... by kiliankoe on Tuesday January 17, 2017 @05:05AM (#13416276)
While on this, are there any tools floating around for summarizing a Mailman archive into some basic stats? I have a few lists that I'd love gathering some stats for. Things like most prolific writer per week, general mail count per month, first occurrence of authors, etc. I wanted to throw something together myself, but thought I might be able to find something similar online, unfortunately to no avail.
Re:Git-quick-stats – A simple and efficient way to access va... by JNRowe on Tuesday January 17, 2017 @10:41AM (#13418400)
mboxstats[1] is pretty good for this if you're fetching the monthly archives from the web interface and desire a quick overview. It supports mbox and maildir, and can produce XML output for easier post-processing.

The mboxstats author has a variety of interesting tools on his site, if you're in to strange stats and log processing like me ;)

I've submitted it here[2] in the hope others pile in with other cool options.

1. http://www.vanheusden.com/mboxstats/ 2. https://news.ycombinator.com/item?id=13418463

Re:Git-quick-stats – A simple and efficient way to access va... by kiliankoe on Wednesday January 18, 2017 @12:29PM (#13428227)
Thanks for the link! Will definitely have a look! :)
Re:Git-quick-stats – A simple and efficient way to access va... by Roritharr on Monday January 16, 2017 @06:33PM (#13414023)
I'd like this as a GitLab Plug-In.

Sadly the GitLab Team thinks that Plug-In Support is not necessary. :(

Re:Git-quick-stats – A simple and efficient way to access va... by lbotos on Monday January 16, 2017 @07:10PM (#13414199)
I'm pretty sure you could wire this up with CI to run and give you output. The only feature that you can't get out of GitLab right now would be suggested code reviewers. The rest looked like they'd be pretty visible via the UI.

disclosure: I work at GitLab, but this is opinion is my own, posted on my own time, reading HN.

Re:Git-quick-stats – A simple and efficient way to access va... by hendry on Tuesday January 17, 2017 @01:12AM (#13415549)
Be good if you tracked sloc, like mine does :) https://github.com/kaihendry/graphsloc
Re:Git-quick-stats – A simple and efficient way to access va... by blauditore on Tuesday January 17, 2017 @03:14AM (#13415855)
I'm not sure about the HN rules on this; shouldn't the title be "Show HN: [...]" when posting something you made yourself?