From: Junio C Hamano Date: Mon, 6 Jul 2015 21:18:09 +0000 (-0700) Subject: rerere: further clarify do_rerere_one_path() X-Git-Tag: v2.7.0-rc0~149^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/925d73c4217388838e36bfed85553132c458c7d0?ds=inline;hp=--cc rerere: further clarify do_rerere_one_path() Signed-off-by: Junio C Hamano --- 925d73c4217388838e36bfed85553132c458c7d0 diff --git a/rerere.c b/rerere.c index 7b4028cf11..80be303bd9 100644 --- a/rerere.c +++ b/rerere.c @@ -653,16 +653,13 @@ static void do_rerere_one_path(struct string_list_item *rr_item, fprintf(stderr, "Resolved '%s' using previous resolution.\n", path); - goto mark_resolved; + } else if (!handle_file(path, NULL, NULL)) { + /* The user has resolved it. */ + copy_file(rerere_path(name, "postimage"), path, 0666); + fprintf(stderr, "Recorded resolution for '%s'.\n", path); + } else { + return; } - - /* Let's see if the user has resolved it. */ - if (handle_file(path, NULL, NULL)) - return; /* not yet resolved */ - - copy_file(rerere_path(name, "postimage"), path, 0666); - fprintf(stderr, "Recorded resolution for '%s'.\n", path); -mark_resolved: free(rr_item->util); rr_item->util = NULL; }