Browse Source

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/
maint
Junio C Hamano 15 years ago
parent
commit
bcc9b7427d
  1. 5
      Documentation/git-push.txt
  2. 2
      Makefile
  3. 4
      builtin-push.c

5
Documentation/git-push.txt

@ -138,6 +138,11 @@ useful if you write an alias or script around 'git-push'. @@ -138,6 +138,11 @@ useful if you write an alias or script around 'git-push'.
--verbose::
Run verbosely.

-q::
--quiet::
Suppress all output, including the listing of updated refs,
unless an error occurs.

include::urls-remotes.txt[]

OUTPUT

2
Makefile

@ -1827,7 +1827,7 @@ distclean: clean @@ -1827,7 +1827,7 @@ distclean: clean
$(RM) configure

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

4
builtin-push.c

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
#include "parse-options.h"

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

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

Loading…
Cancel
Save