Giter Site home page Giter Site logo

Comments (3)

casperdcl avatar casperdcl commented on June 18, 2024

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.

KrisThielemans avatar KrisThielemans commented on June 18, 2024

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.

casperdcl avatar casperdcl commented on June 18, 2024

Sorry for the confusion - I was referring to two different things.

  • manually using --author when committing bot-like things
  • .git-blame-ignore-revs (via git fame --ignore-revs-file or git 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.