Re: [PATCH v4 15/16] branch: use ref-filter printing APIs
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Apr 13, 2016, 19:01 UTC
- Message-ID
- <CAOLa=ZQnM95mApOmYYZa3SeFq2af5FMmiqh0ZFZDn3EO8U9-Dg@mail.gmail.com>
- In-Reply-To
- <CAPc5daUZvP03o+eb2ngvRtV=aoXWGnZH9FKj9bRCEj3MrCT8WQ@mail.gmail.com>
On Wed, Apr 13, 2016 at 8:42 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
>>> Having said that, doesn't this need to be further adjusted for >>> 95c38fb0 (branch: fix shortening of non-remote symrefs, 2016-04-03)? >>> >>> http://thread.gmane.org/gmane.comp.version-control.git/290622/focus=290624 >>> >> >> That was one of the changes made in this version of the patch series :) > > But with this patch applied, it seems that the tests in Peff's fix > does not seem to pass. > If I understand correctly, "fix shortening" stops doing your > symref:short (which is to > shorten the usual "drop refs/heads, refs/remotes, etc.") and makes the > shortening > conditional. The target of a symref that is found in refs/heads/ gets > refs/heads and > nothing else stripped.
Having a look here, WRT to the patch v4 it seems the problem is that patch v4 doesn't support v2.6.x behavior, namely that cross-prefix symrefs will not be shortened at all. As per the format given in the last patch [16/16] it shortens the symref irrespective of being cross-prefix symrefs.
Would it be a good idea to enforce this as in v2.6.x or change it as to allow shortening of cross-prefix symrefs.
-- Regards, Karthik Nayak