Hacker News new | past | comments | ask | show | jobs | submit login
Git blame has never been so much fun (mroth.github.io)
148 points by napolux on Aug 12, 2013 | hide | past | favorite | 32 comments



I have been wanting to keep daily portraits of myself but never get around to it because it seems like more hassle than good to insert yet one more habit into my day that I have to remind myself to do. This actually solves it brilliantly by putting it on auto-pilot all the while providing meaningful capture times, plus git bisect could have a whole new dimension.

I think there's potential for analysis tools on top of it, though I think this stuff should be private (at least to the team) lest we create more data for companies and governments. With that in mind, I think integration with git-annex[1] as a plugin to backup the photos would be really interesting. Or it could already work, honestly I am yet to look into how git-annex works in practice, but from it's concept I know it's gonna be the right backup solution for some types of data I have (e.g. audio recordings, for which I currently use Evernote out of convenience.)

[1]: http://git-annex.branchable.com/

EDIT: So I tried to set it up, and I installed ruby gems in such a way that it needs sudo-everything. So sudo gem install lolcommits made me have to sudo lolcommits --enable. Doesn't necessarily bother me but I guess the program doesn't have access to save the snapshots and it may be failing silently (since no ~/.lolcommits was created after my first commit with it.) I haven't tried lolcommits --browse nor lolcommits --last because I'm using xmonad and I assume they are gonna try to open something back in my Ubuntu desktop which will leave me in an interface limbo. Author might want to keep the command line helper more agnostic, e.g. 'lolcommits browse' cd's you to the directory, and 'lolcommits browse -g' pops open your gui file manager.


Since all commits are stored in a directory, './lolcommits', and it's triggered when you make a commit, it seems like it would be straightforward to create a post commit hook that adds the new image to git-annex, especially as the filename is the commit's hash. Alternatively, you could simply use the assistant to watch the directory and sync it for you. So there's no need for built-in git-annex integration, though it would make it nicer.


So I started working on something like this a year or so ago, mine is not as pretty as lolcommits though: http://gitshots.ranman.org/ (source is here: https://github.com/ranman/gitshots ) -- it uses mongo as the backend which was probably not the best choice in the world but it lets you do some cool stuff with the data.


The obvious thing is to somehow get this working with http://www.commitlogsfromlastnight.com/


A similar project: Take a picture when a merge fails: http://andialbrecht.wordpress.com/2009/05/09/when-merging-fa...


Give me a button that electrocutes the developer when I blame something and find out it's a rotten turd and I'll be happy :)


That's a good way to hurt yourself ;)


I religiously apologise to my team when I screw up :)

Others do not, which is why they need some (electrically) induced motivation.

Well played with the comment though :)


Even better grab a random Linus response to Linux kernel commits and add it as a comment. Example: [GitUser], SHUT THE FUCK UP!

It's a bug alright - in the [GitRepo]. How long have you been a maintainer? And you still haven't learnt the first rule of [GitRepo] maintenance?

If a change results in user programs breaking, it's a bug in the [GitRepo]. We never EVER blame the user programs. How hard can this be to understand?


Good idea. Also comments from theo.c in mg:

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mg/theo.c?...

Scroll down a bit to the array...


"We have two kinds of developers - those that deal with their own shit and those that deal with other people's shit.",


My coworker built a gem that does this about a year ago, minus the meme-like text:

https://github.com/gregorym/gitstagram


I've been using this for about a year or so on my spare time trying-to-start-a-startup project. It's pretty fun to scroll through ~500 images of myself. I was thinking I may upload the whole series online eventually for people to laugh at my bad hair days


This is great! If only Hipchat would allow for image uploads... would love to send the image to hipchat with the push notification message


And if Hipchat took screenshots when coworkers saw your commits we could replace performance reviews.


I've wanted a tool like this for conflicts - I want to see what people look like when they do a pull and get a conflict.


It's a shame it doesn't store them in /commits/<hash> in the repo itself.


wouldn't that make checking out the repo a total pain in the ass? or do you mean just store them there and not upload them?


This might be a bit disturbing if used by teams who work from home...


I will enable this at home for my side-projects! This is really LOL.


Since their stored in '~/.lolcommits', I don't think this could really impact any production projects. I think it could be pretty funny, especially for non-side projects.


Unfortunately, I don't have webcam at work.


This looks very fun :) Kinda disappointed it's ruby but that's just my bias.


Why does that even matter?

It's not as if you have to interact with it beyond issuing a "lolcommits --enable" command.


You don't know me do you? Every script/piece of code gets dissected eventually. It's just a matter of how enjoyable/easy to read the code is.


I'm going to go ahead and guess that they don't in fact know you.


this is a great idea - i wonder that i never thought of it


ahahaha.. lol!


May the lulz begin.


Code is to be taken seriously.

You better commit some unbreakable code while using this.


I admire your dedication to ensuring all code is serious and no superfluous fun is permitted.

Have no fear, you can actually use lolcommits as a management tool in order to audit your workplace and make sure everyone is appropriately miserable. Anyone caught smiling or laughing while committing can then be fired for not being serious enough while coding.


And I admire the fun way in which you handle criticism.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: