docs icon indicating copy to clipboard operation
docs copied to clipboard

Explain that it's possible to see files from before a git-blame-ignore-revs change

Open jsoref opened this issue 3 years ago • 2 comments

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file

What part(s) of the article would you like to see updated?

Users don't naturally understand how to see past a .git-blame-ignore-revs file: https://github.com/github/feedback/discussions/5033#discussioncomment-2333741

It is possible to do it.

The steps are basically: Open /tree/<current-sha> and browse to .git-blame-ignore-revs and click History to find the shas that applied layers (or you could use Blame to find the <sha> that introduced things to ignore that you don't want to ignore).

Then use <that-sha>~ as the sha for the blame for the file that you want to view w/o the ignore rule.

Additional information

No response

jsoref avatar May 24 '22 21:05 jsoref

@jsoref Thanks so much for opening a PR! I'll get this triaged for review ⚡

janiceilene avatar May 26 '22 18:05 janiceilene

Thanks @jsoref, I agree that we could add this explanation to that article. You or anyone else is welcome to open a PR doing so!

lecoursen avatar Nov 08 '22 19:11 lecoursen