“…, because…” in commit message
Published in
1 min readJul 13, 2018
I keep struggling sometimes with knowing why has this code been written.
All the known ways seem to be complicated.
The solution
So I come up with idea to add ..., because of ...
to every my commit message.
If a team accepts this rule as a “git style”, every developer can use git blame
or Annotate
function of IDE to see not only who changed the line, but also — why!
In my experience devs anyway use git blame
to detect the person who’s written the code and go to him/her with a question like:
— Why have you done this?