Felipe Contreras wrote:
> It's not my job to
> explain to you that 'git fast-export' doesn't work this way, you have
> a command line to type those commands and see for yourself if they do
> what you think they do with a vanilla version of git. That's exactly
> what I did, to make sure I'm not using assumptions as basis for
> arguing, it took me a few minutes.
Well no, when I run "git blame" 10 years down the line and do not
understand what your code is doing, it is not at all reasonable to
expect me to checkout the parent commit, get it to compile with a
modern toolchain, and type those commands for myself.
Instead, the commit message should be self-contained and explain what
the patch does.
That has multiple parts:
- first, what the current behavior is
- second, what the intent behind the current behavior is. This is
crucial information because presumably we want the change not to
- third, what change the patch makes
- fourth, what the consequences of that are, in terms of new use
cases that become possible and old use cases that become less
- fifth, optionally, how the need for this change was discovered
(real-life usage, code inspection, or something else)
- sixth, optionally, implementation considerations and alternate
approaches that were discarded
If you run "git log", you'll see many good and bad examples to think
over and compare to this goal. It's hard work to describe one's work
well in terms that other people can understand, but I think it can be
satisfying, and in any event, it's just as necessary as including
comments near confusing code.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html