I'm trying to use git am to apply a patch created using git format-patch. There were a few conflicts. As suggested in several other questions, I'm actually using git am --reject, so that it patches the files it can (most of them), and generates .rej files for the rest. All right so far.
For each of the generated .rej files, I'm making changes by hand, and then using git add to indicate the files I've fixed. All right so far.
Finally, I'm running git am --resolved to complete the process.
But! The commit it creates contains only the (few) files for which I manually resolved conflicts and explicitly git added them. All the others, that it successfully patched, are uncommitted, still showing up when I do a git diff.
How can I convince git am --reject to do a git add on the files it successfully patches, so that I don't have to? (I figured out a way to do all the extra git adds, explicitly, myself, but it's obviously a big and seemingly unnecessary nuisance — in my case, there were 60 of them.)
git version 1.8.3.1, if it matters.
git addall the patched files thatgit amforgot to, that's less work than upgrading.)git stashbeforegit am --rejectandgit add .after to add all patched files (andgit stash popafter all)?git stash, and I don't trust open-endedgit add(having had too many bad experiences with both). (But that's my issue.)