Thread (1 message) 1 message, 1 author, 2016-06-15

Re: More builtin git-am issues..

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:06:27

Johannes Sixt [off-list ref] writes:
Why do we need a new rule? The old git-am had a logic that pleased
everyone, and it must have been implemented somewhere. Shouldn't it be
sufficient to just re-implement or re-use that logic?
If you look at the helper the rewritten "am" calls, you will notice
that it is used by other things that wants to know whether a log
message has the final "trailer" block, and the reason why the
callers want to know is not limited to "I want to add a sign-off".

What your "just re-implement" means is "change the world order
drastically to other callers who do not want such a special casing
for sign-off".

That was why I tried to see if a slight tweak to the rule shared by
all callers that would be much less likely to break these other
callers can satisfy the need of "am".

Perhaps we would need to tell has_conforming_footer() function who
the caller is, and use a different logic (i.e. "just re-implement")
when the caller is append_signoff().
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help