Jonathan Nieder <[email protected]> writes: > Maybe the warning should happen after add_file_to_index() has run, > letting git compare the old and new index entries for that path?
Yeah, new and deleted cases we do not have to worry about, so a no-op add_file_to_index() is the only case we have to be careful. There is a "if verbose, say 'add %s'" logic in the funciton, so it should be possible to enhance the API without affecting existing callers to extract that necessary information out of it. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

