Thread (4 messages) 4 messages, 3 authors, 2024-03-28

Re: Better visual separation of hunks in `git add -p`

From: Junio C Hamano <hidden>
Date: 2024-03-28 20:43:24

Dragan Simic [off-list ref] writes:
Of course, users could pick the right escape sequences for their
terminals, but as you already noted, the same configurations could
end up being used on different terminals.  For example, even SSHing
into a machine using a different SSH client could lead to a mess.
There is a separate discussion of conditional configuration based on
environment variable settings, e.g.

    [includeIf "env:TERM:vt100"]
	path = ~/.git-config-bits/vt100

where the named file might have

    [prompt] prefix = "\033[H\033[J"

so it is certainly doable.

It is a different story if doing so is sensible, of course.




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