Skip to content

Commit ccc37d3

Browse files
committed
lint-history: explain filename paths
It was not clear for some users that the filenames would be relative paths from the toplevel of the repository. Add some text to explain this. Reported-by: @ruv on GitHub Signed-off-by: Elijah Newren <[email protected]>
1 parent dc012d2 commit ccc37d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/filter-repo-demos/lint-history

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ example_text = '''CALLBACK
5959
def is_relevant(filename):
6060
BODY
6161
62+
Where filename is the full relative path from the toplevel of the
63+
repository.
64+
6265
Thus, to only run on files with a ".txt" extension you would run
6366
lint-history --relevant 'return filename.endswith(b".txt")' ...
6467

0 commit comments

Comments
 (0)