| Crates.io | git_copyright |
| lib.rs | git_copyright |
| version | 0.3.2 |
| created_at | 2022-03-07 07:34:57.533224+00 |
| updated_at | 2026-01-19 11:58:58.587815+00 |
| description | Add/update copyright notes based on git history |
| homepage | |
| repository | https://github.com/sgasse/git_copyright |
| max_upload_size | |
| id | 544881 |
| size | 58,519 |
Extract added/last modified times from git history and add/update copyright notes accordingly.
The easiest way to install git_copyright is via cargo from crates.io:
cargo install --locked git_copyright
If you want to build it from source, clone the repository and then run:
cargo build --release
There are no required arguments, but you probably want to set the copyright template to something matching what your company uses, .e.g:
git_copyright --copyright-template "Copyright {years} YourCorp. All rights reserved."
You can also use a pre-built image:
docker run --rm -u $(id -u) -v $(pwd):/mnt sgasse/git_copyright:0.3.2 --copyright-template "Copyright {years} YourCorp. All rights reserved."