git_copyright

Crates.iogit_copyright
lib.rsgit_copyright
version0.3.2
created_at2022-03-07 07:34:57.533224+00
updated_at2026-01-19 11:58:58.587815+00
descriptionAdd/update copyright notes based on git history
homepage
repositoryhttps://github.com/sgasse/git_copyright
max_upload_size
id544881
size58,519
Simon B. Gasse (sgasse)

documentation

README

git_copyright

Extract added/last modified times from git history and add/update copyright notes accordingly.

Installation

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

Running

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."

Run with Docker

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."
Commit count: 30

cargo fmt