Nika Layzell [off-list ref] writes:
quoted
Which means that perhaps a cleaner fix may be
- if (unborn) {
+ if (patch_mode) {
+ /* do not compute or check &oid we will not use */
+ ;
+ } else if (unborn) {
...
right?
I tried to make this change, however it has unfortunate side-effects. The
"git-add--interactive" script does produce an error if it is not of the
expected type, but it exits with a successful "0" status.
Thanks for being diligent. I love it when I see contributors do not
believe blindly what I suggest out of hunch and instead verify it
themselves.
Given that the add--interactive script is undergoing a C rewrite, I am
inclined to continue validating the argument in reset.c to avoid changes to
the perl script.
Thanks. That is a very reasonable decision.