]> git.ipfire.org Git - thirdparty/git.git/commit
terminal: use flags for save_term()
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Wed, 16 Mar 2022 18:54:02 +0000 (18:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Mar 2022 19:24:43 +0000 (12:24 -0700)
commit02af15dec5bf0114b03c4c3bec5d8f60890a1c58
tree721087c7717ba3e6ff96be6358ccb34f40a24dec
parent32f3ac26e03c02d4085a2734a4eeb549852ade8d
terminal: use flags for save_term()

The next commit will add another flag in addition to the existing
full_duplex so change the function signature to take a flags
argument. Also alter the functions that call save_term() so that they
can pass flags down to it.

The choice to use an enum for tho bitwise flags is because gdb will
display the symbolic names of all the flags that are set rather than
the integer value.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/terminal.c
compat/terminal.h