Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .git-blame-ignore-revs files #2

Open
thehale opened this issue Jan 30, 2023 · 1 comment
Open

Add support for .git-blame-ignore-revs files #2

thehale opened this issue Jan 30, 2023 · 1 comment
Labels
enhancement New feature or request hacktoberfest

Comments

@thehale
Copy link
Owner

thehale commented Jan 30, 2023

Some repositories contain a file listing commits to ignore for git blame operations. That file can be passed to the git blame command using the --ignore-revs-file option available in Git v2.23 or later. Most repositories name this file .git-blame-ignore-revs and locate it at the root of the repository.

It would be great if git-authorship supported looking for this file with its default name and location when computing authorship. Once a CLI is added, a CLI option for the file path should also be provided to support unconventional blame ignore files.

@thehale thehale added the enhancement New feature or request label Jan 30, 2023
@thehale
Copy link
Owner Author

thehale commented Jan 30, 2023

A nice article explaining the rationale behind ignoring some commits from git blame: https://moxio.com/blog/ignoring-bulk-change-commits-with-git-blame/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant