prune: add "--progress" to man page and usage msg
Add mention of git prune's "--progress" option to the SYNOPSIS and DESCRIPTION sections of the man page, and to the usage message of "git prune" itself. While we're here, move the explanation of "--" toward the end of the DESCRIPTION section, where it belongs. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Robert P. J. Day committed
Nov 21, 2017 at 10:51 UTC
1a1fc2d5b5b84bc7a6c7ebe1cd8c8f7587314b59
2 files changed
+7
-4
Documentation/git-prune.txt
+6
-3
@@ -9,7 +9,7 @@ git-prune - Prune all unreachable objects from the object database
9
SYNOPSIS
10
--------
11
[verse]
12
-'git prune' [-n] [-v] [--expire <expire>] [--] [<head>...]
12
+'git prune' [-n] [-v] [--progress] [--expire <time>] [--] [<head>...]
13
14
DESCRIPTION
15
-----------
@@ -42,12 +42,15 @@ OPTIONS
42
--verbose::
43
Report all removed objects.
44
45
-\--::
46
- Do not interpret any more arguments as options.
45
+--progress::
46
+ Show progress.
47
48
--expire <time>::
49
Only expire loose objects older than <time>.
50
51
+\--::
52
+ Do not interpret any more arguments as options.
53
+
54
<head>...::
55
In addition to objects
56
reachable from any of our references, keep objects
builtin/prune.c
+1
-1
@@ -8,7 +8,7 @@
8
#include "progress.h"
9
10
static const char * const prune_usage[] = {
11
- N_("git prune [-n] [-v] [--expire <time>] [--] [<head>...]"),
11
+ N_("git prune [-n] [-v] [--progress] [--expire <time>] [--] [<head>...]"),
12
NULL
13
};
14
static int show_only;