在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mookid/diffr开源软件地址:https://github.com/mookid/diffr开源编程语言:Rust 100.0%开源软件介绍:diffrReviewing changes involves reading diffs. Sometimes, a line-oriented presentation of changes is not precise enough, especially when changes involve long lines or very similar consecutive lines. This program processes such diffs, and outputs them (in the console) with additional diff information on top of the unified diff format, using text attributes. It works hunk by hunk, recomputing the diff on a word-by-word basis. The current implementation uses Myers' longest common subsequence algorithm. InstallationArch LinuxInstall from the AUR:
Homebrew
From sourceYou will need the Rust compiler installed. To install the latest published version:
Alternatively, you can build the development version:
How to use it?diffr tries to be a well behaved Unix program: it reads its input from stdin and writes to stdout. One-off usage
Integration with gitAdd the following section to your
Alternatively, you can run from the command line:
Color customizationUse the --colors flag. You can customize the display of diffing and common segments of added and removed lines. For example,
tweaks the red used for uniquely removed text; The configuration used in the first screenshot is
Display line numbersThe Related projectsThis is improvement on the diff-highlight script distributed with git. git itself provides both |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论