mv: honor --verbose flag

The code for a verbose flag has been here since "git mv" was converted to C many years ago, but actually getting the "-v" flag from the command line was accidentally lost in the transition. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Dec 12, 2011 at 02:51 UTC 07b8738967a26dd7ab39d02b86aa805dea567319
2 files changed +7 -2
Documentation/git-mv.txt
+6 -2
@@ -15,8 +15,8 @@ DESCRIPTION
15 -----------
16 This script is used to move or rename a file, directory or symlink.
17
18 - git mv [-f] [-n] [-k] <source> <destination>
19 - git mv [-f] [-n] [-k] <source> ... <destination directory>
18 + git mv [-v] [-f] [-n] [-k] <source> <destination>
19 + git mv [-v] [-f] [-n] [-k] <source> ... <destination directory>
20
21 In the first form, it renames <source>, which must exist and be either
22 a file, symlink or directory, to <destination>.
@@ -40,6 +40,10 @@ OPTIONS
40 --dry-run::
41 Do nothing; only show what would happen
42
43 +-v::
44 +--verbose::
45 + Report the names of files as they are moved.
46 +
47 GIT
48 ---
49 Part of the linkgit:git[1] suite
builtin/mv.c
+1
@@ -55,6 +55,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
55 int i, newfd;
56 int verbose = 0, show_only = 0, force = 0, ignore_errors = 0;
57 struct option builtin_mv_options[] = {
58 + OPT__VERBOSE(&verbose, "be verbose"),
59 OPT__DRY_RUN(&show_only, "dry run"),
60 OPT__FORCE(&force, "force move/rename even if target exists"),
61 OPT_BOOLEAN('k', NULL, &ignore_errors, "skip move/rename errors"),