Thread (57 messages) flat view 57 messages, 3 authors, 2016-11-20

Re: [PATCH v7 05/17] ref-filter: move get_head_description() from branch.c

From: Karthik Nayak <hidden>
Date: 2016-11-10 19:02:34

On Wed, Nov 9, 2016 at 5:01 AM, Jacob Keller [off-list ref] wrote:
On Tue, Nov 8, 2016 at 12:11 PM, Karthik Nayak [off-list ref] wrote:
quoted
-               if (starts_with(name, "refname"))
+               if (starts_with(name, "refname")) {
                        refname = ref->refname;
-               else if (starts_with(name, "symref"))
+                       if (ref->kind & FILTER_REFS_DETACHED_HEAD)
+                               refname = get_head_description();
Since this (I think?) changes behavior of refname would it make sense
to add a test for this?
At the moment there is no way to check this, since this option is not used by
git for-each-ref or git tag (both of which completely use ref-filter
ATM). This is
however tested as eventually git branch uses ref-filter.

-- 
Regards,
Karthik Nayak
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help