This is an archive of the discontinued LLVM Phabricator instance.

Add .git-blame-ignore-revs file
ClosedPublic

Authored by ruiu on Sep 3 2019, 11:55 PM.

Details

Summary

This new file is intended to be used to list sweeping changes
such as mass reformatting or renaming. You can configure git-blame
so that the command ignores commits listed in this file.

The initial contents of this file is two commit hashes which did
mass renaming to the lld directory.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Sep 3 2019, 11:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 3 2019, 11:55 PM
MaskRay added inline comments.Sep 4 2019, 1:46 AM
.git-blame-ignore-revs
11 ↗(On Diff #218597)

I currently use .git/blame. Is .git-blame-ignore-revs recognized by default as well?

You may add comments beside commit ids to mark the revision numbers, and probably titles.

ruiu marked an inline comment as done.Sep 4 2019, 1:51 AM
ruiu added inline comments.
.git-blame-ignore-revs
11 ↗(On Diff #218597)

No, git blame doesn't use any file by default. I borrowed this filename from git-hyper-blame, which is a 3rd party extension that implements the feature before git blame acquires this feature last month.

ruiu updated this revision to Diff 218612.Sep 4 2019, 1:54 AM
  • add a comment to each commit
MaskRay accepted this revision.Sep 4 2019, 2:06 AM
MaskRay added inline comments.
.git-blame-ignore-revs
11 ↗(On Diff #218597)

It looks this file has been adopted by several projects: firefox, chrome, etc. This is nice.

This revision is now accepted and ready to land.Sep 4 2019, 2:06 AM
This revision was automatically updated to reflect the committed changes.