From 93a74b139384797264c49c8f9687099b3556fc9a Mon Sep 17 00:00:00 2001 From: Emmanuel Quincerot Date: Wed, 25 Jan 2023 14:37:47 +0100 Subject: [PATCH] git-annotate: add -L example (#9808) --- pages/common/git-annotate.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-annotate.md b/pages/common/git-annotate.md index 9ad786ea60..16c02acdfd 100644 --- a/pages/common/git-annotate.md +++ b/pages/common/git-annotate.md @@ -12,3 +12,7 @@ - Print a file with the author email and commit hash prepended to each line: `git annotate -e {{path/to/file}}` + +- Print only rows that match a regular expression: + +`git annotate -L :{{regexp}} {{path/to/file}}`