Skip to content

Commit bcc9b74

Browse files
committed
Merge branch 'maint'
* maint: git push: say that --tag can't be used with --all or --mirror in help text git push: remove incomplete options list from help text document push's new quiet option Makefile: clean block-sha1/ directory instead of mozilla-sha1/
2 parents ad12b81 + 8ef4c28 commit bcc9b74

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Documentation/git-push.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ useful if you write an alias or script around 'git-push'.
138138
--verbose::
139139
Run verbosely.
140140

141+
-q::
142+
--quiet::
143+
Suppress all output, including the listing of updated refs,
144+
unless an error occurs.
145+
141146
include::urls-remotes.txt[]
142147

143148
OUTPUT

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ distclean: clean
18271827
$(RM) configure
18281828

18291829
clean:
1830-
$(RM) *.o mozilla-sha1/*.o arm/*.o ppc/*.o compat/*.o compat/*/*.o xdiff/*.o \
1830+
$(RM) *.o block-sha1/*.o arm/*.o ppc/*.o compat/*.o compat/*/*.o xdiff/*.o \
18311831
$(LIB_FILE) $(XDIFF_LIB)
18321832
$(RM) $(ALL_PROGRAMS) $(BUILT_INS) git$X
18331833
$(RM) $(TEST_PROGRAMS)

builtin-push.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "parse-options.h"
1111

1212
static const char * const push_usage[] = {
13-
"git push [--all | --mirror] [-n | --dry-run] [--porcelain] [--tags] [--receive-pack=<git-receive-pack>] [--repo=<repository>] [-f | --force] [-v] [<repository> <refspec>...]",
13+
"git push [<options>] [<repository> <refspec>...]",
1414
NULL,
1515
};
1616

@@ -181,7 +181,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
181181
OPT_BIT( 0 , "all", &flags, "push all refs", TRANSPORT_PUSH_ALL),
182182
OPT_BIT( 0 , "mirror", &flags, "mirror all refs",
183183
(TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)),
184-
OPT_BOOLEAN( 0 , "tags", &tags, "push tags"),
184+
OPT_BOOLEAN( 0 , "tags", &tags, "push tags (can't be used with --all or --mirror"),
185185
OPT_BIT('n' , "dry-run", &flags, "dry run", TRANSPORT_PUSH_DRY_RUN),
186186
OPT_BIT( 0, "porcelain", &flags, "machine-readable output", TRANSPORT_PUSH_PORCELAIN),
187187
OPT_BIT('f', "force", &flags, "force updates", TRANSPORT_PUSH_FORCE),

0 commit comments

Comments
 (0)