Charles Bailey <charles@xxxxxxxxxxxxx> writes: > To be complete, any work tree file which differs from HEAD needs to be > saved, regardless of whether it still appears in the index or not. Sounds quite sane. > - git add -u && > + git diff --name-only -z HEAD | git update-index -z --add --remove --stdin && Paths that exist in HEAD but not in the index will be caught with this; what about paths that do not exist in HEAD but is in the index---they will be kept in the index so they are fine as well. Good. Thanks. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html