Re: [PATCH 2/3] ref-filter: allow porcelain to translate messages in the output

2015-10-11 Thread Karthik Nayak
On Sun, Oct 11, 2015 at 9:46 PM, Matthieu Moy wrote: > This patch shows the way, but is obviously incomplete as it works only > for "nobracket" version. Actually, I think the code should first build > the unbracketed output string and then do something like > > if (!nobracket) { > const ch

[PATCH 2/3] ref-filter: allow porcelain to translate messages in the output

2015-10-11 Thread Matthieu Moy
This patch shows the way, but is obviously incomplete as it works only for "nobracket" version. Actually, I think the code should first build the unbracketed output string and then do something like if (!nobracket) { const char *to_free = v->s; v->s = xstrfmt("[%s]", v->s);