Jens Lehmann [off-list ref] writes:
quoted
Changes in add.c and cache.h (and related compilo fix in checkout.c) are
needed to make it work for "commit -a" too.
Looking good so far, but we definitely need tests for this new option.
But I wonder if it would make more sense to start by teaching the
--ignore-submodules option to git add. Then this patch could reuse
that for commit -a.
I am not sure about the code reuse, but from the usability and
consistency point of view, they must go hand in hand, I would
think.