]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin/checkout.c
Turn unpack_trees_options.msgs into an array + enum
[git.git] / builtin / checkout.c
index 1994be92c66257da18c31502bda605be170fd092..7d1706e0f9a5b866f8d592914ab8cc2330d271a8 100644 (file)
@@ -373,7 +373,7 @@ static int merge_working_tree(struct checkout_opts *opts,
                topts.src_index = &the_index;
                topts.dst_index = &the_index;
 
-               topts.msgs.not_uptodate_file = "You have local changes to '%s'; cannot switch branches.";
+               topts.msgs[ERROR_NOT_UPTODATE_FILE] = "You have local changes to '%s'; cannot switch branches.";
 
                refresh_cache(REFRESH_QUIET);