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

repo sync #16442

Merged
merged 48 commits into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a28305c
Updated language to reference enabling instead of opt-in
dihydroJenoxide Mar 17, 2022
52f7399
Optimize images
invalid-email-address Mar 17, 2022
e357b29
Merge branch 'main' into dihydrojen-4
dihydroJenoxide Mar 17, 2022
9385fcb
fixing broken link
dihydroJenoxide Mar 17, 2022
05d9ac5
Merge branch 'main' into dihydrojen-4
dihydroJenoxide Mar 17, 2022
8929c8c
Update content/get-started/privacy-on-github/about-githubs-use-of-you…
dihydroJenoxide Mar 21, 2022
219d719
Update content/get-started/privacy-on-github/managing-data-use-settin…
dihydroJenoxide Mar 22, 2022
cc96a78
Update content/get-started/privacy-on-github/managing-data-use-settin…
dihydroJenoxide Mar 22, 2022
3e35338
Merge branch 'main' into dihydrojen-4
dihydroJenoxide Mar 22, 2022
dea9e17
Merge pull request #26278 from github/dihydrojen-4
dihydroJenoxide Mar 22, 2022
e591ffe
Openapi update api.github.com (#26398)
rachmari Mar 22, 2022
dfe1692
Openapi 3.0 ghae (#26400)
rachmari Mar 22, 2022
e7c0463
Update OpenAPI Descriptions (#26397)
github-openapi-bot Mar 22, 2022
e177d70
Fix a change missed in a last minute update (#26389)
felicitymay Mar 22, 2022
a37f715
change order of some site-policy docs (#26307)
vollmera Mar 22, 2022
033f1fd
Merge branch 'main' into repo-sync
Octomerger Mar 22, 2022
80dd1c4
Merge pull request #26419 from github/repo-sync
Octomerger Mar 22, 2022
d68a2ee
Merge branch 'main' into repo-sync
Octomerger Mar 22, 2022
2fb0764
Merge pull request #26422 from github/repo-sync
Octomerger Mar 22, 2022
1ca669b
Create codespace.md
hubwriter Mar 22, 2022
1c10cf3
Merge branch 'main' into repo-sync
Octomerger Mar 22, 2022
bc2df17
Update README.md
hubwriter Mar 22, 2022
d58d577
Merge branch 'main' into repo-sync
docubot Mar 22, 2022
5d768e5
Update README.md
hubwriter Mar 22, 2022
a37127f
Update codespace.md
hubwriter Mar 22, 2022
c1da45f
Merge branch 'main' into repo-sync
docubot Mar 22, 2022
6ccb192
Update codespace.md
hubwriter Mar 22, 2022
32a8cf9
Merge branch 'main' into repo-sync
docubot Mar 22, 2022
8571dd7
Update codespace.md
hubwriter Mar 22, 2022
889aa27
Update codespace.md
hubwriter Mar 22, 2022
958abde
Merge branch 'main' into repo-sync
docubot Mar 22, 2022
21e276d
Merge pull request #26425 from github/repo-sync
Octomerger Mar 22, 2022
98daee0
Update OpenAPI Descriptions
github-openapi-bot Mar 22, 2022
250f63f
Merge branch 'main' into repo-sync
Octomerger Mar 22, 2022
669c66a
Merge pull request #26426 from github/repo-sync
Octomerger Mar 22, 2022
ed5362d
update preview env app_url to preview.ghdocs.com (#26335)
mikesurowiec Mar 22, 2022
2b66677
Fix flag (#26420)
mattpollard Mar 22, 2022
d92a0f2
Update codespace.md
hubwriter Mar 22, 2022
95d2d58
Update codespace.md
hubwriter Mar 22, 2022
4bac41a
Update codespace.md
hubwriter Mar 22, 2022
f6ec000
Remove Caddy from preview envs (#26336)
mikesurowiec Mar 22, 2022
6d6ba7f
Merge branch 'main' into repo-sync
Octomerger Mar 22, 2022
38c5724
Merge pull request #26428 from github/repo-sync
Octomerger Mar 22, 2022
ba3d251
Add `Ignore commits in the blame view` to blame docs (#26017)
JasonEtco Mar 22, 2022
a77a26a
Connect addendum deprecation (#26296)
birust Mar 22, 2022
3dd57f4
temporarily commented out
peterbe Mar 22, 2022
b89e458
also comment out
peterbe Mar 22, 2022
7f55632
also comment out
peterbe Mar 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add Ignore commits in the blame view to blame docs (#26017)
  • Loading branch information
JasonEtco authored Mar 22, 2022
commit ba3d25144ef4b11490f1f54d541e06d54300959a
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,39 @@ In a file or pull request, you can also use the {% octicon "kebab-horizontal" ar
![Blame button](/assets/images/help/repository/blame-button.png)
4. To see earlier revisions of a specific line, or reblame, click {% octicon "versions" aria-label="The prior blame icon" %} until you've found the changes you're interested in viewing.
![Prior blame button](/assets/images/help/repository/prior-blame-button.png)

{% if blame-ignore-revs %}

## Ignore commits in the blame view
{% note %}

**Note:** Ignoring commits in the blame view is currently in public beta and subject to change.

{% endnote %}

All revisions specified in the `.git-blame-ignore-revs` file, which must be in the root directory of your repository, are hidden from the blame view using Git's `git blame --ignore-revs-file` configuration setting. For more information, see [`git blame --ignore-revs-file`](https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt) in the Git documentation.

1. In the root directory of your repository, create a file named `.git-blame-ignore-revs`.
2. Add the commit hashes you want to exclude from the blame view to that file. We recommend the file to be structured as follows, including comments:

```ini
# .git-blame-ignore-revs
# Removed semi-colons from the entire codebase
a8940f7fbddf7fad9d7d50014d4e8d46baf30592
# Converted all JavaScript to TypeScript
69d029cec8337c616552756310748c4a507bd75a
```

3. Commit and push the changes.

Now when you visit the blame view, the listed revisions will not be included in the blame. You'll see an **Ignoring revisions in .git-blame-ignore-revs** banner indicating that some commits may be hidden:

![Screenshot of a banner on the blame view linking to the .git-blame-ignore-revs file](/assets/images/help/repository/blame-ignore-revs-file.png)

This can be useful when a few commits make extensive changes to your code. You can use the file when running `git blame` locally as well:

```shell
git blame --ignore-revs-file .git-blame-ignore-revs
```

{% endif %}
6 changes: 6 additions & 0 deletions data/features/blame-ignore-revs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Reference: #6378.
# Documentation for the `.git-blame-ignore-revs` file and the blame view
versions:
fpt: '*'
ghec: '*'
ghes: '>3.5'