We use git/GitLab to collaborate on a project which involves digitizing/proof-reading of old/ancient books. Editors are paid per contributed chars. Till now we used something like wc -m *
to find out how many chars were contributed. This approach assumes that all files are contributed by one person AND that all files contributed by that person are in the current directory. Real situation is actually different. Editors may fix each others' files and their files might be spread over several directories.
Is there a way in git (probably involving --author=
flag) to find out the amount of characters contributed by an author in the whole repository in HEAD (i.e. its current state, not accumulative amount of chars in all history). Maybe using Bash/pipes?