Code

mv: improve overwrite warning
[git.git] / builtin / mv.c
index 177e5437813b4ed65ed4b984d2d6ae4d0dbd43cd..4a8374f63d8a55593309a42967a740201de6a62a 100644 (file)
@@ -173,7 +173,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
                                 * check both source and destination
                                 */
                                if (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)) {
-                                       warning(_("%s; will overwrite!"), bad);
+                                       warning(_("overwriting '%s'"), dst);
                                        bad = NULL;
                                } else
                                        bad = _("Cannot overwrite");