Skip to content
Merged
Changes from all commits
Commits
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
18 changes: 18 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# .git-blame-ignore-revs
#
# Add formatting-only or other mechanical commits here so `git blame` skips them.
# Add each new revision as a separate 3-line block:
# 1) # <commit title>
# 2) # <pull request URL>
# 3) <full commit SHA>
#
# Configure once per clone:
# git config set blame.ignoreRevsFile .git-blame-ignore-revs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Correct the git config command syntax.

Lines 10 and 12 use non-standard git config syntax that will fail:

  • Line 10 uses git config set ... but the standard syntax is git config [--local] <key> <value> (without set)
  • Line 12 uses git config unset ... but the standard syntax is git config --unset <key> (with --unset flag, not just unset)

Users following these instructions will encounter command errors.

🔧 Proposed fix for git command syntax
# Configure once per clone:
-#   git config set blame.ignoreRevsFile .git-blame-ignore-revs
+#   git config --local blame.ignoreRevsFile .git-blame-ignore-revs
# Disable local config:
-#   git config unset blame.ignoreRevsFile
+#   git config --unset blame.ignoreRevsFile

Also applies to: 12-12

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.git-blame-ignore-revs at line 10, The git config commands in the
.git-blame-ignore-revs file use non-standard syntax that will fail when
executed. On line 10, remove the word "set" from the git config command and use
the standard syntax of "git config [--local] <key> <value>". On line 12, replace
"git config unset" with the correct flag-based syntax "git config --unset <key>"
to properly unset the configuration value. Ensure both commands follow the
standard git config command format.

# Disable local config:
# git config unset blame.ignoreRevsFile
# One-off usage:
# git blame --ignore-revs-file .git-blame-ignore-revs path/to/file

# chore: introduced formatter
# https://github.com/ton-org/ton/pull/136
2936606dcd9193e69319ef87cad1163bf1b158a0