Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaz-utashiro/sdif-tools
Repository for sdif family commands, including cdif and watchdiff.
https://github.com/kaz-utashiro/sdif-tools
Last synced: 2 months ago
JSON representation
Repository for sdif family commands, including cdif and watchdiff.
- Host: GitHub
- URL: https://github.com/kaz-utashiro/sdif-tools
- Owner: kaz-utashiro
- License: other
- Created: 2017-12-04T01:02:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T06:50:34.000Z (10 months ago)
- Last Synced: 2024-06-19T01:59:56.823Z (7 months ago)
- Language: Perl
- Homepage: https://kaz-utashiro.github.io/sdif-tools/
- Size: 8.09 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[![Actions Status](https://github.com/kaz-utashiro/sdif-tools/workflows/test/badge.svg)](https://github.com/kaz-utashiro/sdif-tools/actions) [![MetaCPAN Release](https://badge.fury.io/pl/App-sdif.svg)](https://metacpan.org/release/App-sdif)
# NAMEApp::sdif - sdif and family tools, cdif and watchdiff
# SYNOPSIS
sdif f1 f2
diff -c f1 f2 | cdif
git diff | sdif -n
watchdiff df
# DESCRIPTION
**sdif-tools** are composed by **sdif** and related tools including
**cdif** and **watchdiff**.**sdif** prints diff output in side-by-side format.
**cdif** adds visual effect for diff output, comparing lines in
word-by-word, or character-by-character bases.**watchdiff** calls specified command repeatedly, and print the output
with visual effect to emphasize modified part.See individual manual of each command for detail.
# INSTALL
## CPANM
$ cpanm App::sdif
## GIT
Those are sample configurations using **sdif** family in git
environment. You need to install **mecab** command to use **--mecab**
option.~/.gitconfig
[pager]
log = sdif | less
show = sdif | less
diff = sdif | less~/.sdifrc
option default -n --margin=4~/.cdifrc
option default --mecab~/.profile
export LESS="-cR"
export LESSANSIENDCHARS="mK"You can write everything in ~/.gitconfig:
[pager]
log = sdif -n --margin=4 --mecab | env LESSANSIENDCHARS=mK less -cR
show = sdif -n --margin=4 --mecab | env LESSANSIENDCHARS=mK less -cR
diff = sdif -n --margin=4 --mecab | env LESSANSIENDCHARS=mK less -cR
# SEE ALSO
[sdif](https://metacpan.org/pod/sdif), [cdif](https://metacpan.org/pod/cdif), [watchdiff](https://metacpan.org/pod/watchdiff)
[Getopt::EX](https://metacpan.org/pod/Getopt%3A%3AEX)
# AUTHOR
Kazumasa Utashiro
# LICENSE
Copyright 1992- Kazumasa Utashiro.
These commands and libraries are free software; you can redistribute
it and/or modify it under the same terms as Perl itself.