在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:so-fancy/diff-so-fancy开源软件地址:https://github.com/so-fancy/diff-so-fancy开源编程语言:Perl 80.8%开源软件介绍:diff-so-fancy
ScreenshotVanilla InstallInstallation is as simple as cloning this repo and then putting the
Issues relating to packaging ('installation does not work', 'version is out of date', etc.) should be directed to those packages' own repositories/issue trackers where applicable. Note: Windows users may need to install MinGW or the Windows subsystem for Linux. UsageWith gitConfigure git to use git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
git config --global interactive.diffFilter "diff-so-fancy --patch" Improved colors for the highlighted bitsThe default Git colors are not optimal. The colors used for the screenshot above were: git config --global color.ui true
git config --global color.diff-highlight.oldNormal "red bold"
git config --global color.diff-highlight.oldHighlight "red bold 52"
git config --global color.diff-highlight.newNormal "green bold"
git config --global color.diff-highlight.newHighlight "green bold 22"
git config --global color.diff.meta "11"
git config --global color.diff.frag "magenta bold"
git config --global color.diff.func "146 bold"
git config --global color.diff.commit "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.diff.whitespace "red reverse" With diffUse diff -u file_a file_b | diff-so-fancy OptionsmarkEmptyLinesShould the first block of an empty line be colored. (Default: true) git config --bool --global diff-so-fancy.markEmptyLines false changeHunkIndicatorsSimplify git header chunks to a more human readable format. (Default: true) git config --bool --global diff-so-fancy.changeHunkIndicators false stripLeadingSymbolsShould the pesky git config --bool --global diff-so-fancy.stripLeadingSymbols false useUnicodeRulerBy default, the separator for the file header uses Unicode line-drawing characters. If this is causing output errors on your terminal, set this to git config --bool --global diff-so-fancy.useUnicodeRuler false rulerWidthBy default, the separator for the file header spans the full width of the terminal. Use this setting to set the width of the file header manually. git config --global diff-so-fancy.rulerWidth 47 # git log's commit header width The diff-so-fancy team
ContributingPull requests are quite welcome, and should target the Other documentationAlternativesLicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论