Skip to content

Commit 82f10aa

Browse files
committed
psuh: show parameters & config opts
Signed-off-by: Long Nguyen <n.h.long.9697@gmail.com>
1 parent 22ab15f commit 82f10aa

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

Documentation/git-psuh.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ OPTIONS[[OPTIONS]]
2222
Don't actually remove any objects, only show those that would have been
2323
removed.
2424

25-
OUTPUT
26-
------
27-
...
28-
2925
GIT
3026
---
31-
Part of the git[1] suite
27+
Part of the linkgit:git[1] suite

Documentation/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ manpages = {
103103
'git-patch-id.adoc' : 1,
104104
'git-prune-packed.adoc' : 1,
105105
'git-prune.adoc' : 1,
106+
'git-psuh.adoc' : 1,
106107
'git-pull.adoc' : 1,
107108
'git-push.adoc' : 1,
108109
'git-quiltimport.adoc' : 1,

builtin/psuh.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
#include "commit.h"
88
#include "pretty.h"
99
#include "strbuf.h"
10+
#include "parse-options.h"
11+
12+
static const char * const psuh_usage[] = {
13+
N_("git psuh [<arg>...]"),
14+
NULL,
15+
};
1016

1117
int cmd_psuh(int argc, const char **argv,
1218
const char *prefix, struct repository *repo) {
@@ -15,6 +21,11 @@ int cmd_psuh(int argc, const char **argv,
1521
struct wt_status status;
1622
struct commit *c = NULL;
1723
struct strbuf commitline = STRBUF_INIT;
24+
struct option options[] = {
25+
OPT_END()
26+
};
27+
argc = parse_options(argc, argv, prefix, options, psuh_usage, 0);
28+
1829

1930
wt_status_prepare(repo, &status);
2031
repo_config(repo, git_default_config, &status);

command-list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ git-pack-refs ancillarymanipulators
153153
git-patch-id purehelpers
154154
git-prune ancillarymanipulators complete
155155
git-prune-packed plumbingmanipulators
156+
git-psuh mainporcelain info
156157
git-pull mainporcelain remote
157158
git-push mainporcelain remote
158159
git-quiltimport foreignscminterface

0 commit comments

Comments
 (0)