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

Re: Tabs in commit messages - de-tabify option in strbuf_stripspace()?

From: Matthieu Moy <hidden>
Date: 2016-06-15 23:08:50

Marc Branchaud [off-list ref] writes:
On 16-03-15 09:02 PM, Stefan Beller wrote:
quoted
On Tue, Mar 15, 2016 at 6:00 PM, Stefan Beller [off-list ref] wrote:
quoted
Instead of converting to whitespaces in Git, we could make use of the
set_tabs capability for ttys and setup the terminal for having tabs align
to 12,+8,+8,+8...
Or rather read in the existing tabs configuration and shift it by a constant.
Could this also help with diff output, where the leading + or - mars the
indentation in a similar way?
Hardly: the same pager would be used to display the commit message (with
a 4-space prefix) and the diff (with a 1-char +/- prefix). So the
offsets in these two places would need to be different, and I don't
think we can change that on the fly.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help