24
I'm trying to apply a git patch created by someone else with git-format-patch. The patch was made against one commit behind HEAD, but as I understand it this shouldn't matter. When I run git am 0001.patch, I get the error:
error: source.c: does not match index
I'm not too familiar with the format of git patches, but it does seem that the indexes don't match, however the source does match.
What's the best way to fix this? Manually change the indexes to match? Or should I git-apply and then copy the author and description information when I commit?