All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacob Keller <jacob.keller@gmail.com>
To: "Jakub Narębski" <jnareb@gmail.com>
Cc: Kevin Daudt <me@ikke.info>, ryenus <ryenus@gmail.com>,
	Git mailing list <git@vger.kernel.org>
Subject: Re: Notation for current branch?
Date: Sun, 28 Aug 2016 23:39:02 -0700	[thread overview]
Message-ID: <CA+P7+xrGh687cYHJmYyXiWfjg_8i2-31FZOvk4bEMsO1FU22WA@mail.gmail.com> (raw)
In-Reply-To: <4114ccbc-6b23-b7fe-ce4a-fcd0c9e4038a@gmail.com>

On Sun, Aug 28, 2016 at 6:56 AM, Jakub Narębski <jnareb@gmail.com> wrote:
> W dniu 28.08.2016 o 12:51, Kevin Daudt pisze:
>> On Sun, Aug 28, 2016 at 05:58:18PM +0800, ryenus wrote:
>
>>> I wonder if there's an easy to use notation to refer to the current branch?
>>> which is expected be friendly to scripting.
>>>
>>> For HEAD, there's @, which is short and concise.
>
> What's wrong with simply using 'HEAD' for scripting?
>

When you want to display the current branch to the user, e.g. when
scripting a shell prompt or similar use

Thanks,
Jake

  reply	other threads:[~2016-08-29  6:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-28  9:58 Notation for current branch? ryenus
2016-08-28 10:51 ` Kevin Daudt
2016-08-28 13:56   ` Jakub Narębski
2016-08-29  6:39     ` Jacob Keller [this message]
2016-08-29 19:49       ` Junio C Hamano
2016-08-29 19:52         ` Jacob Keller
2016-09-01 15:51           ` ryenus
2016-08-30 18:09         ` ryenus
2016-08-30 18:19           ` Junio C Hamano

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=CA+P7+xrGh687cYHJmYyXiWfjg_8i2-31FZOvk4bEMsO1FU22WA@mail.gmail.com \
    --to=jacob.keller@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    --cc=me@ikke.info \
    --cc=ryenus@gmail.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.