From: Duy Nguyen Date: Fri, 03 Jun 2016 23:52:23 GMT Subject: Re: [PATCH v2 3/3] fetch: reduce duplicate in ref update status lines Message-ID: In-Reply-To: <20160603170621.GA3858@sigill.intra.peff.net> On Sat, Jun 4, 2016 at 12:06 AM, Jeff King wrote: > On Fri, Jun 03, 2016 at 06:08:43PM +0700, Nguyễn Thái Ngọc Duy wrote: > >> When there are lots of ref updates, each has different name length, this >> will make it easier to look because the variable part is at the end. > > Is it worth handling more complicated cases, where there is a similar > "middle", but different beginning? > > One of my common refspecs is: > > +refs/pull/*/head:refs/remotes/pull/* > > That still shows as: > > refs/pull/123/head -> pull/123 > > but could be: > > {refs -> }/pull/123{head -> } > > I actually think that _isn't_ an improvement, but I wonder if there is a > format that would be. A placeholder can still keep the variable part at the end, e.g. "refs/$/head -> pull/123" -- Duy