Skip to content

Commit 1a1fc2d

Browse files
robertpjdaygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9752ad0 commit 1a1fc2d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Documentation/git-prune.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-prune - Prune all unreachable objects from the object database
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git prune' [-n] [-v] [--expire <expire>] [--] [<head>...]
12+
'git prune' [-n] [-v] [--progress] [--expire <time>] [--] [<head>...]
1313

1414
DESCRIPTION
1515
-----------
@@ -42,12 +42,15 @@ OPTIONS
4242
--verbose::
4343
Report all removed objects.
4444

45-
\--::
46-
Do not interpret any more arguments as options.
45+
--progress::
46+
Show progress.
4747

4848
--expire <time>::
4949
Only expire loose objects older than <time>.
5050

51+
\--::
52+
Do not interpret any more arguments as options.
53+
5154
<head>...::
5255
In addition to objects
5356
reachable from any of our references, keep objects

builtin/prune.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "progress.h"
99

1010
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>...]"),
1212
NULL
1313
};
1414
static int show_only;

0 commit comments

Comments
 (0)