diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-07-16 20:25:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-16 23:32:33 -0700 |
commit | 9196e825875dce66f6bc95dda01f5833f20bc5e5 (patch) | |
tree | a505538785437b5f6877aa88ee4ff26d9dd9085a /rerere.c | |
parent | fcab40a389e99786a8276108cdbc1cda8caf502f (diff) | |
download | git-9196e825875dce66f6bc95dda01f5833f20bc5e5.tar.gz git-9196e825875dce66f6bc95dda01f5833f20bc5e5.tar.xz |
rerere.autoupdate: change the message when autoupdate is in effect
This changes the message rerere issues after reusing previous conflict
resolution from "Resolved" to "Staged" when autoupdate option is in
effect.
It is envisioned that in practice, some auto resolitions are trickier and
iffier than others, and we would want to add a feature to mark individual
resolutions as "this is ok to autoupdate" or "do not autoupdate the result
using this resolution even when rerere.autoupdate is in effect" in the
future. When that happens, these messages will make the distinction
clearer.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rerere.c')
-rw-r--r-- | rerere.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -278,10 +278,13 @@ static int do_plain_rerere(struct path_list *rr, int fd) if (has_resolution(name)) { if (!merge(name, path)) { - fprintf(stderr, "Resolved '%s' using " - "previous resolution.\n", path); if (rerere_autoupdate) path_list_insert(path, &update); + fprintf(stderr, + "%s '%s' using previous resolution.\n", + rerere_autoupdate + ? "Staged" : "Resolved", + path); goto mark_resolved; } } |