0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-21 17:36:59 -05:00
forgejo-docs/docs/user/blame.md
Earl Warren 24def40ad3 sync with Gitea d3982bcd814bac93e3cbce1c7eb749b17e413fbd
git diff abe8fe352711601fbcd24bf4505f7e0b81a93c5d..d3982bcd814bac93e3cbce1c7eb749b17e413fbd -- $(find . -type f -name '*en-us*')
2024-02-25 18:03:28 +00:00

1.6 KiB

title license origin_url
Blame File View Apache-2.0 d3982bcd81/docs/content/usage/blame.en-us.md

Forgejo supports viewing the line-by-line revision history for a file also known as blame view. You can also use git blame on the command line to view the revision history of lines within a file.

Blame view of a file

  1. Navigate to and open the file whose line history you want to view.
  2. Click the Blame button in the file header bar.
  3. The new view shows the line-by-line revision history for a file with author and commit information on the left side.
  4. To navigate to an older commit, click the icon.

Ignore commits in the blame view

All revisions specified in the .git-blame-ignore-revs file are hidden from the blame view. This is especially useful to hide reformatting changes and keep the benefits of git blame. Lines that were changed or added by an ignored commit will be blamed on the previous commit that changed that line or nearby lines. The .git-blame-ignore-revs file must be located in the root directory of the repository. For more information like the file format, see the git blame --ignore-revs-file documentation.

Bypassing .git-blame-ignore-revs in the blame view

If the blame view for a file shows a message about ignored revisions, you can see the normal blame view by appending the url parameter ?bypass-blame-ignore=true.