Skip to content

Conversation

@qaisjp
Copy link
Contributor

@qaisjp qaisjp commented Mar 25, 2020

This file contains a list of commits with
mass changes for exclusion by git blame.

Passing --ignore-revs-file .git-blame-ignore-revs as a flag will
tell git to "ignore changes made by the revision when assigning
blame, as if the change never happened".

For example:

git blame --ignore-revs-file .git-blame-ignore-revs ...

For extra hot sauce, ignore white space changes too:

git blame -w --ignore-revs-file .git-blame-ignore-revs ...

You can make this a default for your repo using:

git config blame.ignoreRevsFile .git-blame-ignore-revs

Also, if you use the GitLens extension for Visual Studio Code, you
can add "-w" as a value to "gitlens.advanced.blame.customArguments".

Note that git blame does not use any file by default, and
the filename .git-blame-ignore-revs is just a convention.

This file contains a list of commits with
mass changes for exclusion by `git blame`.

Passing `--ignore-revs-file .git-blame-ignore-revs` as a flag will
tell git to "ignore changes made by the revision when assigning
blame, as if the change never happened".

For example:
  git blame --ignore-revs-file .git-blame-ignore-revs ...

For extra hot sauce, ignore white space changes too:
  git blame -w --ignore-revs-file .git-blame-ignore-revs ...

You can make this a default for your repo using:
  git config blame.ignoreRevsFile .git-blame-ignore-revs

Also, if you use the GitLens extension for Visual Studio Code, you
can add "-w" as a value to "gitlens.advanced.blame.customArguments".

Note that `git blame` does not use any file by default, and
the filename `.git-blame-ignore-revs` is just a convention.
@qaisjp qaisjp force-pushed the feature/add-.git-blame-ignore-revs branch from 50f4fe5 to a69ffe5 Compare March 25, 2020 04:06
@qaisjp qaisjp merged commit fa6bdb6 into multitheftauto:master Mar 29, 2020
@qaisjp qaisjp deleted the feature/add-.git-blame-ignore-revs branch March 29, 2020 05:41
@qaisjp qaisjp added this to the 1.6 milestone Mar 29, 2020
@patrikjuvonen patrikjuvonen added the enhancement New feature or request label Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants