Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 2/2] vcs_info git: For the branch name, try to find a symbolic name before falling back to a raw commit hex.
- X-seq: zsh-workers 43315
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH 2/2] vcs_info git: For the branch name, try to find a symbolic name before falling back to a raw commit hex.
- Date: Sat, 18 Aug 2018 22:41:28 +0200
- In-reply-to: <20180818155719.23574-2-danielsh@tarpaulin.shahaf.local2> (Daniel Shahaf's message of "Sat, 18 Aug 2018 15:57:19 +0000")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180818155719.23574-1-danielsh@tarpaulin.shahaf.local2> <20180818155719.23574-2-danielsh@tarpaulin.shahaf.local2>
Daniel Shahaf wrote:
> Ask git-describe(1) and git-name-rev(1) to compute a gitrevisions(1)
> name in terms of a branch or tag that contains (= is a descendant of,
> is younger than) HEAD.
>
> In this repository, the output changes from "9567bfe..." to
> "master~1" or "remotes/origin/HEAD~1".
> ---
> WDYT?
I like it. Maybe use a style to make it possible to get the old
behavior back, if someone prefers it?
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author