Git development
 help / color / mirror / Atom feed
From: Rob Hoelz <rob@hoelz.ro>
To: git@vger.kernel.org
Subject: Adding a new option to git-push: --(no-)create-branch
Date: Thu, 19 Apr 2012 00:03:17 +0200	[thread overview]
Message-ID: <4F8F3A25.1080407@hoelz.ro> (raw)

Hello Git developers and users,

When I use Git, I tend to specify my branches explicitly.  For example:

git push origin master:master

However, I will often make a typo like this:

git push origin master:msater

I was thinking that it would be nice for git to support a new 
option/config value: --no-create-branch (push.createbranch).  This 
configuration variable
would forbid git from creating new remote branches, unless overriden 
with --create-branch.

Does anyone think this would be worth implementing?  I'd like to take 
the pulse of the community before I start making any modifications.

Thanks,
Rob Hoelz

             reply	other threads:[~2012-04-18 22:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-18 22:03 Rob Hoelz [this message]
2012-04-19  0:46 ` Adding a new option to git-push: --(no-)create-branch Junio C Hamano
2012-04-19  6:40   ` Rob Hoelz

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=4F8F3A25.1080407@hoelz.ro \
    --to=rob@hoelz.ro \
    --cc=git@vger.kernel.org \
    /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