am: be more helpful
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Apr 9, 2010, 22:59 UTC
- Message-ID
- <t2kfabb9a1e1004091559u92230e17h957f2c5565c133e3@mail.gmail.com>
Heya,
I run into this problem every now and then when I manually apply a patch. I apply it, do some stuff, and then having forgotten I already applied it, try to apply it again, and am confused as to why it won't apply. Would it be difficult to teach 'git am' to see if the patch-id of the patch that couldn't be applied has been applied already (similar to what 'git cherry' does I guess?) and print a helpful message saying "warning: patch already applied" when there is a conflict trying to apply such an already-applied patch?
-- Cheers, Sverre Rabbelier