Earlier quoted context omitted.
Many people enjoy pretending that the term "blame" in "git blame" is not a funny little programmer joke that we don't have to be upset about.
It's funny because it always ends up telling me I did it.
Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
61–70 of 130 posts
Re: Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
#62Re: Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
#63Re: Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
#64This is great. I do this sort of git-blame accounting to track how much code is written by AI versus humans in each release of my app. My "blame script" has been slowing down as the repo size increases. I was just about to add caching, like you have. Have you thought about adding the ability to limit the stats based on a set of file patterns? Perhaps like this, where the file follows gitignore conventions? git-who ta…
That's a neat idea, I can see how it'd be useful. If you have a shell that supports extended globbing, you could do something like: $ git who table */**/*.go That works for me using Bash. I believe all that's happening here is that Bash is expanding the globs and passing a long list of individual filepaths as arguments to git who. Git who then passes them to git log so that it only tallies the commits you'd get by ru…
I might have my globbing syntax wrong, but I think that `*/**/*.go` is the same as `**/*.go` unless you have `*.go` files in the working directory.
Re: Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
#65By the way, git blaming is really misunderstood by a lot of people; its NOT about who did it, its about which commit is to blame -- that's different.
git blame is about which author most recently touched each line (in what commit); i.e. is to "blame" for that line having its current content.
You're right in that git blame is most useful for finding which commit touched a line. What was done in the commit is more important than who did it.
git blame is very useful even in a solo project where you already know that you wrote every commit.
Re: Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
#66By the way, git blaming is really misunderstood by a lot of people; its NOT about who did it, its about which commit is to blame -- that's different.
Re: Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
#67Lovely tool. Thanks for the release! I had some fun with it before calling it a day. Here is my personal wishlist after a short test-drive. - Blame-based stats. While it is nice to see an overview of the historical contributions of Bob and Alice, this is not something that I would use on a daily basis. What would be more useful, is to present the same tables based on the blame lines of a tree-ish. This would show the…
Not sure what's happening with the tarball. Will take a look at that.
Re: Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
#68Earlier quoted context omitted.
Isn't this sort of an inconsequential point? The commit still has one and only one author and that's almost certainly what I'm looking for so I know who to go ask questions about their code. I also use it to find the commit but less frequently.
I mean, no. If you work on a codebase that's been going for more than a few years, the author likely doesn't even work there anymore. The commit is the important thing.
Re: Show HN: "Git who" – A new CLI tool for industrial-scale Git blaming
#69For a rails codebase that is ~18 years old, has 1695 committers and more than 220,000 commits:
time git who
...
real 0m2.885s
user 0m2.711s
sys 0m0.767s