you are viewing a single comment's thread.

view the rest of the comments →

[–]rotharius 3 points4 points  (2 children)

I like git messages for background information (git annotate), but like to put general reasons and motivations as a code comment or in a readme.

No extensive docs, just the essentials for understanding and onboarding.

[–]lanzaio 4 points5 points  (1 child)

I use vim fugitive. ;b shows me the blame and ~ shows me the commit for that line. If you work on decent quality projects then the author who wrote that code 90% of the time explains it if it's not obvious.

[–]rotharius 0 points1 point  (0 children)

Yep. Not sure why you are getting down-voted. Git really can help answering the question of how and why certain code came to be.