Comments (3)
I think you're talking about https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view :)
PS I tend to use --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
from git-fame.
Sorry @casperdcl can you be more explicit?
The git blame
doc refers to fsck.skipList
for the format, which says
The path to a list of object names (i.e. one unabbreviated SHA-1 per line) that are known to be broken in a non-fatal way and should be ignored.
I've optimistically tried to add --author="stir_maintenance <[email protected]>"
to .git-blame-ignore-revs
and do
git blame --ignore-revs-file .git-blame-ignore-revs some_filename
That gives
fatal: invalid object name: --author="stir_maintenance <[email protected]>"
I could imagine creating a script that uses git log
to find all hashes from this user to update this file, but that could easily become quite large if we'd run a bot that changes code.
Even if I manage that, I don't know how to pass this to git fame
. Maybe by setting blame.ignoreRevsFile
?
thanks!
from git-fame.
Sorry for the confusion - I was referring to two different things.
- manually using
--author
when committing bot-like things .git-blame-ignore-revs
(viagit fame --ignore-revs-file
orgit config --local --add blame.ignoreRevsFile
) which unfortunately can only contain revisons not authors, so is only intended for infrequent large-scale formatting
I haven't seen any elegant solutions for cases like pre-commit.ci[bot]
autofixing lots of external PRs on very active projects.
from git-fame.
Related Issues (20)
- Fails to count LOC and files when passing multiple repos HOT 1
- Excluding a folder HOT 4
- Is it support for counting non-empty, non-commented lines of code?
- Get lines of code by file extension for a particular author? HOT 3
- How does it work? Do deleted lines count? HOT 2
- Recursing stats blocked HOT 2
- What is `--loc=surv`? HOT 6
- `--loc=surv` has more loc than `--loc=ins,del` (counts bin files)
- Option for Case-Insensitivity (`CI`) HOT 1
- explain in details the metrics
- JSON Output
- "Dubious ownership in repository" error running Docker container
- [feature] Use shtab to generate shell completion
- wrong loc after author change or repo import HOT 3
- excl appears to have no effect HOT 3
- Count hours based on commits in the GitHub pull requests
- Is it possible to add -until? HOT 1
- feature: emit both email and name HOT 2
- --excl documentation missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-fame.