From 79c18a9728ba2a7a88a3b386d61b4de59eca770a Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 16 Aug 2025 21:36:31 +0300 Subject: [PATCH] git-blame: add an example to blame similar to github UI (#17648) Update git-blame.md --- pages/common/git-blame.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-blame.md b/pages/common/git-blame.md index 061b6e7d33..7374eb8bc8 100644 --- a/pages/common/git-blame.md +++ b/pages/common/git-blame.md @@ -19,6 +19,10 @@ `git blame {{commit}}~ {{path/to/file}}` +- Jump to the parent of a specific commit and track a specific text and 10 of its following lines: + +`git blame -L '/{{text}}/',+10 {{a82812aa}}^ tldr.py` + - Print author name and commit hash information for a specific line range: `git blame -L {{start_line}},{{end_line}} {{path/to/file}}`