Skip to main content

word-by-word blame for git

Project description

git-word-blame

Show word-by-word authors of a file

Installation

pip install git-word-blame

Usage

git word-blame <path/to/my/file>

It will produce the following files:

- authors_stats.tsv         # top authors by number of characters attributed to them
- commit_stats.tsv          # same for commits
- word-blame-by-commit.html # hover on some text to see wich commit created it
- word-blame-by-author.html # same for authors

Authorship algorithms

Two algorithms are available:

  • wikiwho (default): coarse but more robust
  • mwpersistence: precise but with more false-positives

To change the engine used by git word-blame:

git config --global word-blame.engine mwpersistence

Themes

You can choose between 3 themes for the HTML output: black-and-white, solarized-dark, solarized-light.

git config --global word-blame.theme solarized-dark

Limits

git-word-blame doesn't support renames for now and is only tested on files with a linear history.

There's also a default maxmum of 2000 commits processed. This can be removed with this command: git config --global word-blame.limit 0.

See also

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-word-blame-0.0.4.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

git_word_blame-0.0.4-py3-none-any.whl (19.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page