Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lockdiff

Convert a lock with lots of info to something more readable

For instance:

[[package]]
name = "foo"
version = "1.4"

becomes:

foo@1.4

Note that this works both with poetry.lock and Cargo.lock - both use toml with the same syntax :)

Using lockdiff with git

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' in .gitattributes:

Cargo.lock diff=lockdiff

And have the following section in your git config:

[diff "lockdiff"]
textconv = lockdiff

About

Simplify looking at diffs for lock files, such as Cargo.lock or poetry.lock

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages