Crates.io | lockdiff |
lib.rs | lockdiff |
version | 1.1.7 |
source | src |
created_at | 2023-12-29 13:50:42.757664 |
updated_at | 2024-10-26 12:42:25.513781 |
description | Display more readable diffs for lock files |
homepage | |
repository | https://github.com/your-tools/lockdiff |
max_upload_size | |
id | 1083362 |
size | 30,842 |
Convert a lock with lots of info to something more readable
For instance:
[[package]]
name = "foo"
version = "1.4"
becomes:
foo@1.4
The primary purpose of this tool is to hide "noise" related to package changes
in automatically generated files such as Cargo.lock
when using with git diff
and related commands.
For this to work, you need to register the 'lockdiff' as a text converter
in your git config (usually ~/.config/git/config
)
[diff "lockdiff"]
textconv = lockdiff
and then tell git
to use lockdiff
when diffing files, in ~/.config/git/attributes
:
Cargo.lock diff=lockdiff
Cargo.lock
composer.lock
go.sum
(beta)poetry.lock
(fun fact, Poetry and Cargo have compatible formats 😎)package-lock.json
yarn.lock