Re: [PATCH v3] tracking branches: add advice to ambiguous refspec error

From
Junio C Hamano <hidden>
Date
2022-03-28 20:34:37
Ævar Arnfjörð Bjarmason [off-list ref] writes:
But as to not penalizing those who don't have the advice enabled,
something like this (untested)?:
Unconditionally computing what you need only in the error path is
the primary sin in the patch, and that should be addressed first.

If we need to do new things (like adding the do_advice member), it
becomes questionable if it is worth doing.  In this case, I think
the update is simple enough and the control flow makes it clear what
is and what isn't needed only for advice-message generation, so it
might be an overall win.

Thanks.
Thread (1 message) 1 message, 1 author, last reply 2022-03-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help