Re: [RFC PATCH] object-name: add @{upstreamhead} shorthand

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 24, 2024 at 08:48:29PM +0200, Bence Ferdinandy wrote:

> > So I think rather than "branch --show-current-remote", we'd want
> > some option to make "branch --list" show only the currently checked out
> > branch, and then you could apply --format to it to get whatever
> > information you wanted. Something like:
> >
> >   git branch --list --is-head --format='%(upstream:remotename)'
> 
> Thanks for running through this in such detail! This would be more widely
> useful for sure. 
> 
> I'd probably call the flag something like "--current", "--current-only" rather
> than "--is-head" though. "--is-head" sounds as if it would filter --list but
> not necessarily end up with a single entry.

Yeah, I think --current would be fine.

-Peff




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux