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 robustmwpersistence
: 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
-
https://github.com/wikiwho/WikiWho/ and https://github.com/wikiwho/WhoColor A word-by-word blame for Wikipedia with a well tested algorithm for prose (default algorithm) The HTML vizualisation of this project is heavily inspired by WhoColor
-
https://github.com/mediawiki-utilities/python-mwpersistence/ An alternative authorship algorithm detection made also for Wikipedia
-
https://github.com/d33tah/wordblame Export Wikipedia articles to git to perform a word-by-word blame, it does that by putting each word in a separate line for each file in the history
-
https://github.com/lucadealfaro/authorship-tracking Another altenative not yet integrated
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
Built Distribution
Hashes for git_word_blame-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bc029cc5f5d37f92ac31db0f8c156220dcb2cd1ef1e8af8f330cb8966fee544 |
|
MD5 | 05022a0dc241b06b0fdc7513c0b12924 |
|
BLAKE2b-256 | 579431fb33695ce40e65b496913570ef1803f6cfc6dab345c1366c8fc4eeb5c6 |