All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Johannes Welsch <johannes.welsch@googlemail.com>
Cc: git@vger.kernel.org
Subject: Re: [RFC] git branch: add -s/--switch to create and switch to a new branch
Date: Tue, 03 Nov 2026 11:46:23 -0800	[thread overview]
Message-ID: <xmqq7bit7l68.fsf@gitster.g> (raw)
In-Reply-To: <CA++gwosYFaOLD5nZjKUUFtp1ryezikqAsD6vu=uqBzOwyszASw@mail.gmail.com> (Johannes Welsch's message of "Tue, 3 Nov 2026 16:34:09 +0100")

Johannes Welsch <johannes.welsch@googlemail.com> writes:

> I'd like to propose adding a -s (--switch) option to `git branch`.
>
> It makes sense semantically to create a branch and to also switch to it.

Why is "git checkout -b <new-branch-name> [<where-the-branch-begins]" 
not sufficient?

      parent reply	other threads:[~2026-11-03 19:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 15:34 [RFC] git branch: add -s/--switch to create and switch to a new branch Johannes Welsch
2026-11-03 17:57 ` Pushkar Singh
2026-11-03 19:46 ` Junio C Hamano [this message]

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=xmqq7bit7l68.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=johannes.welsch@googlemail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.