diff: add flag to indicate textconv was set via cmdline
commitafa73c5384de1d01386e57bd575257d1420aeb21
authorBrandon Williams <bmwill@google.com>
Tue, 31 Oct 2017 18:19:06 +0000 (31 11:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Nov 2017 02:50:02 +0000 (1 11:50 +0900)
tree2d3b79fb98c6c72ff4445ed4638e89b95d77bd09
parent02f2f56bc377c287c411947d0e1482aac888f8db
diff: add flag to indicate textconv was set via cmdline

git-show is unique in that it wants to use textconv by default except
for when it is showing blobs.  When asked to show a blob, show doesn't
want to use textconv unless the user explicitly requested that it be
used by providing the command line flag '--textconv'.

Currently this is done by using a parallel set of 'touched' flags which
get set every time a particular flag is set or cleared.  In a future
patch we want to eliminate this parallel set of flags so instead of
relying on if the textconv flag has been touched, add a new flag
'TEXTCONV_SET_VIA_CMDLINE' which is only set if textconv is set to true
via the command line.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
diff.c
diff.h