Re: [RFC PATCH] object-name: add @{upstreamhead} shorthand
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Oct 21, 2024, 20:35 UTC
- Message-ID
- <Zxa6/4D8lWgqqaxM@nand.local>
- In-Reply-To
- <D51R90BTHJMY.1C1XY5P4CHTWG@ferdinandy.com>
On Mon, Oct 21, 2024 at 10:09:38PM +0200, Bence Ferdinandy wrote:
Show 7 quoted lines
> > E.g., I think you could do:
> >
> > upstream=$(git rev-parse --symbolic-full-name @{upstream})
> > git log ${upstream%/*}/HEAD..
>
> That particular one will break if you have something like
> refs/remotes/origin/foo/bar, but I get your point.Ugh. Having / characters in remote names feels like a mistake to me ;-).
Thanks, Taylor