git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] New config variable push.default
@ 2009-03-16 15:42 Finn Arne Gangstad
  2009-03-16 15:42 ` [PATCH 1/2] New config push.default to decide default behavior for push Finn Arne Gangstad
  2009-03-16 15:42 ` [PATCH 2/2] Display warning for default git push with no push.default config Finn Arne Gangstad
  0 siblings, 2 replies; 3+ messages in thread
From: Finn Arne Gangstad @ 2009-03-16 15:42 UTC (permalink / raw)
  To: git; +Cc: gitster

Add a new configuration variable push.default that decides what action
to take if you do not give "git push" any refspecs, and no refspecs
are implied by options (--all or --mirror), and no refspecs are
configured for the current remote.

Some minor rewording of error messages since last time, and split the
patch into two. Patch 1 introduces the variable with all
functionality, and patch 2 adds a warning if the default behavior is
trigged and push.default has not been configured.

Possible configuration values are:

- nothing: Do not push anything.

- tracking: Push the current branch to the branch it is tracking.  In this
  mode, push will always push to the same branch that pull would pull from.
  This functionality does not exist today.

- current: Push the current branch to a branch of the same name on the
  current remote, create it if it does not exist.  Identical to 
  "git push <remote> HEAD", but you do not have to explicitly give the remote.

- matching: The current behavior, push every branch to the current remote if
  a branch with the same name already exists there.


Finn Arne Gangstad (2):
      New config push.default to decide default behavior for push
      Display warning for default git push with no push.default config

 Documentation/RelNotes-1.6.3.txt |    7 +++
 Documentation/config.txt         |   18 +++++++++
 builtin-push.c                   |   76 +++++++++++++++++++++++++++++++++++--
 cache.h                          |    9 ++++
 config.c                         |   28 ++++++++++++++
 environment.c                    |    1 +
 6 files changed, 134 insertions(+), 5 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-16 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-16 15:42 [PATCH v3 0/2] New config variable push.default Finn Arne Gangstad
2009-03-16 15:42 ` [PATCH 1/2] New config push.default to decide default behavior for push Finn Arne Gangstad
2009-03-16 15:42 ` [PATCH 2/2] Display warning for default git push with no push.default config Finn Arne Gangstad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).