Pierre-François CLEMENT <lik...@gmail.com> writes:
> As you can see, the --cumulative lines seem to be duplicated, though
> the computed stats aren't exactly the same... It appears when you
> combine the --cumulative option with either --stat, --numstat or
> --shortstat (but not --dirstat) ...
Thanks for a report.
I do not think the deprecated --cumulative command line option was
ever designed to be used with anything but --dirstat.
It was a UI mistake to make it look like an independent option,
which was corrected with 333f3fb0c530 (Refactor --dirstat parsing;
deprecate --cumulative and --dirstat-by-file, 2011-04-29) and the
fix shipped back in v1.7.6. Since that release we do not even
mention the option in the manual.
These days, the right way to spell it is as an option parameter to
the --dirstat option itself (e.g. --dirstat=cumulative).
The parser to parse --cumulative as a command line argument was kept
so that people who were used to "--dirstat --cumulative" do not have
to see an error from the command line parser. We could have made
"--cumulative" with other kind of "stat" an error back then, but we
didn't. I suspect that we thought it would be sufficient to not
document --cumulative as a standalone option, but I do not recall
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