Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
jsoref opened this issue May 24, 2022 · 1 comment
Open
1 task done
Labels
content waiting for review

Comments

@jsoref
Copy link
Contributor

@jsoref jsoref commented May 24, 2022

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:
github-community/community#5033 (comment)

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 jsoref added the content label May 24, 2022
@github-actions github-actions bot added the triage label May 24, 2022
@janiceilene
Copy link
Collaborator

@janiceilene janiceilene commented May 26, 2022

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

@janiceilene janiceilene added waiting for review and removed triage labels May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content waiting for review
Projects
None yet
Development

No branches or pull requests

2 participants