Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Repository
difftastic shallow clone for quicker download
Basic Info
- Host: GitHub
- Owner: leontrolski
- License: mit
- Language: OCaml
- Default Branch: main
- Size: 8.72 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Difftastic is an experimental diff tool that compares files based on their syntax.
For installation instructions, see Getting Started in the manual.
Basic Example

In this JavaScript example, we can see:
(1) Difftastic understands nesting. It highlights the matching { and
}, but understands that foo() hasn't changed despite the leading
whitespace.
(2) Difftastic understands which lines should be aligned. It's aligned
bar() on the left with bar(1) on the right, despite their changes.
(3) Difftastic understands that line-wrapping isn't
meaningful. "eric" is now on a new line, but it hasn't changed.
One Minute Demo
This one minute screencast demonstrates difftastic usage with both standalone files and git.
Languages
Difftastic supports over 20 programming languages, see the manual for the full list.
If a file has an unrecognised extension, difftastic uses a textual diff with word highlighting.
Known Issues
Performance. Difftastic scales relatively poorly on files with a large number of changes, and can use a lot of memory.
Display. Difftastic has a side-by-side display which usually works well, but can be confusing.
Robustness. Difftastic regularly has releases that fix crashes.
Non-goals
Patching. Difftastic output is intended for human consumption, and it
does not generate patches that you can apply later. Use diff if you
need a patch.
(Patch files are also line-oriented, which is too limited for difftastic. Difftastic might find additions and removals on the same line, and it tracks the relationship between line numbers in the old and new file.)
Merging. AST merging is a hard problem that difftastic does not address.
License
Difftastic is open source under the MIT license, see LICENSE for more details.
Files in sample_files/ are also under the MIT license unless stated
otherwise in their header.
Owner
- Name: Oliver Russell
- Login: leontrolski
- Kind: user
- Location: London
- Website: https://leontrolski.github.io/
- Repositories: 33
- Profile: https://github.com/leontrolski
Citation (CITATION.cff)
cff-version: 1.2.0
title: Difftastic
message: 'To cite difftastic in publications use:'
type: software
authors:
- given-names: Wilfred
family-names: Hughes
email: me@wilfred.me.uk
url: https://github.com/wilfred/difftastic
repository-artifact: https://crates.io/crates/difftastic
abstract: A syntactic diffing tool
keywords:
- diffing
- programming languages
license: MIT
GitHub Events
Total
Last Year
Dependencies
- aho-corasick 0.7.18
- ansi_term 0.12.1
- archery 0.4.0
- atty 0.2.14
- autocfg 1.0.1
- bitflags 1.3.2
- cc 1.0.72
- cfg-if 1.0.0
- clap 3.0.13
- const_format 0.2.22
- const_format_proc_macros 0.2.22
- crossbeam-channel 0.5.1
- crossbeam-deque 0.8.1
- crossbeam-epoch 0.9.5
- crossbeam-utils 0.8.7
- ctor 0.1.21
- diff 0.1.12
- either 1.6.1
- env_logger 0.7.1
- hashbrown 0.11.2
- hermit-abi 0.1.19
- humantime 1.3.0
- indexmap 1.8.0
- itertools 0.10.3
- lazy_static 1.4.0
- libc 0.2.112
- libmimalloc-sys 0.1.23
- log 0.4.14
- memchr 2.4.1
- memoffset 0.6.5
- mimalloc 0.1.27
- num_cpus 1.13.1
- os_str_bytes 6.0.0
- output_vt100 0.1.2
- owo-colors 3.2.0
- pretty_assertions 1.0.0
- pretty_env_logger 0.4.0
- proc-macro2 1.0.36
- quick-error 1.2.3
- quote 1.0.13
- radix-heap 0.4.2
- rayon 1.5.1
- rayon-core 1.9.1
- regex 1.5.4
- regex-syntax 0.6.25
- rpds 0.10.0
- rustc-hash 1.1.0
- same-file 1.0.6
- scopeguard 1.1.0
- serde 1.0.136
- serde_derive 1.0.136
- static_assertions 1.1.0
- strsim 0.10.0
- syn 1.0.84
- term_size 0.3.2
- termcolor 1.1.2
- textwrap 0.14.2
- tree-sitter 0.20.5
- typed-arena 2.0.1
- unicode-xid 0.2.2
- walkdir 2.3.2
- winapi 0.3.9
- winapi-i686-pc-windows-gnu 0.4.0
- winapi-util 0.1.5
- winapi-x86_64-pc-windows-gnu 0.4.0
- wu-diff 0.1.2
- pretty_assertions 1.0.0 development
- atty 0.2.14
- clap 3.0.13
- const_format 0.2.22
- itertools 0.10.1
- lazy_static 1.4.0
- libc 0.2.108
- log 0.4.14
- mimalloc 0.1.26
- owo-colors 3.2.0
- pretty_env_logger 0.4.0
- radix-heap 0.4.2
- regex 1.5.4
- rpds 0.10.0
- rustc-hash 1.1.0
- serde 1.0
- strsim 0.10.0
- term_size 0.3.2
- tree-sitter 0.20.5
- typed-arena 2.0.1
- walkdir 2.3.2
- wu-diff 0.1.2
