You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff-so-fancy has been designed to work within Git controlled directories. To allow to use it to compare files that are not controlled by Git the --no-index option of git-diff can be used.
The script should pipe the output to less using the options
-R, --RAW-CONTROL-CHARS to only display ANSI "color" escape sequences in "raw" form
-F, --quit-if-one-screen to automatically exit if the entire file can be displayed on the first screen.
-X, --no-init to disable sending the termcap (de)initialization strings to the terminal to avoid unnecessary operations like clearing the screen.
"diff-so-fancy" (1) has been designed to work within Git controlled
directories. To allow to use it to compare files that are not controlled
by Git the "--no-index" (2) option of "git-diff" has been used.
The script pipes the output to "less" using the options
* "-R, --RAW-CONTROL-CHARS" to only display ANSI "color" escape
sequences in "raw" form
* "-F, --quit-if-one-screen" to automatically exit if the entire file
can be displayed on the first screen.
* "-X, --no-init" to disable sending the termcap (de)initialization
strings to the terminal to avoid unnecessary operations like clearing the screen.
* "-x2, --tabs=2" to use two tab stops.
References:
* so-fancy/diff-so-fancy#220 (comment)
(1) https://github.com/so-fancy/diff-so-fancy
(2) https://git-scm.com/docs/git-diff#git-diff-emgitdiffem--no-index--options--ltpathgt823082GH-61
diff-so-fancy has been designed to work within Git controlled directories. To allow to use it to compare files that are not controlled by Git the
--no-index
option ofgit-diff
can be used.The script should pipe the output to
less
using the options-R, --RAW-CONTROL-CHARS
to only display ANSI "color" escape sequences in "raw" form-F, --quit-if-one-screen
to automatically exit if the entire file can be displayed on the first screen.-X, --no-init
to disable sending the termcap (de)initialization strings to the terminal to avoid unnecessary operations like clearing the screen.-x2, --tabs=n
to use two tab stops.References:
The text was updated successfully, but these errors were encountered: