X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-revert.c;h=36677053f87b107f658f1472369755c4fe957a46;hb=cd0843198fecf9faa6e82f6db15fc9c7ec31d3f4;hp=f3d452418c25b0d95a911a050f75ba190d6513c1;hpb=fab600ce2ed086ba87499ffe3c35c46f85e7ab61;p=git.git diff --git a/builtin-revert.c b/builtin-revert.c index f3d452418..36677053f 100644 --- a/builtin-revert.c +++ b/builtin-revert.c @@ -11,6 +11,7 @@ #include "cache-tree.h" #include "diff.h" #include "revision.h" +#include "rerere.h" /* * This implements the builtins revert and cherry-pick. @@ -24,12 +25,12 @@ */ static const char * const revert_usage[] = { - "git-revert [options] ", + "git revert [options] ", NULL }; static const char * const cherry_pick_usage[] = { - "git-cherry-pick [options] ", + "git cherry-pick [options] ", NULL }; @@ -180,7 +181,7 @@ static void set_author_ident_env(const char *message) email++; timestamp = strchr(email, '>'); if (!timestamp) - die ("Could not extract author email from %s", + die ("Could not extract author time from %s", sha1_to_hex(commit->object.sha1)); *timestamp = '\0'; for (timestamp++; *timestamp && isspace(*timestamp); @@ -395,6 +396,7 @@ static int revert_or_cherry_pick(int argc, const char **argv) die ("Error wrapping up %s", defmsg); fprintf(stderr, "Automatic %s failed.%s\n", me, help_msg(commit->object.sha1)); + rerere(); exit(1); } if (commit_lock_file(&msg_file) < 0)