From: Finn Arne Gangstad <finnag@pvv.org>
To: git@vger.kernel.org
Cc: gitster@pobox.com
Subject: [PATCH v3 0/2] New config variable push.default
Date: Mon, 16 Mar 2009 16:42:50 +0100 [thread overview]
Message-ID: <1237218172-16565-1-git-send-email-finnag@pvv.org> (raw)
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(-)
next reply other threads:[~2009-03-16 15:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-16 15:42 Finn Arne Gangstad [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1237218172-16565-1-git-send-email-finnag@pvv.org \
--to=finnag@pvv.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).