Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.2] 2025-04-22

- Correct the contribs plugin to use the `--follow` option when obtaining
contributors' information.

## [1.1.1] 2025-04-18 🌵

- Improve the `contribs` plugin to not pollute the logs with
Expand Down
2 changes: 1 addition & 1 deletion neoteroi/mkdocs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.1"
__version__ = "1.1.2"
11 changes: 3 additions & 8 deletions neoteroi/mkdocs/contribs/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,12 @@ def get_contributors(self, file_path: Path) -> List[Contributor]:
using the Git CLI.
"""
in_process = subprocess.Popen(
["git", "log", "--pretty=short", str(file_path)], stdout=subprocess.PIPE
["git", "log", "--pretty=short", "--follow", str(file_path)],
stdout=subprocess.PIPE,
)
result = self._decode(
subprocess.check_output(
[
"git",
"shortlog",
"--summary",
"--numbered",
"--email",
],
["git", "shortlog", "--summary", "--numbered", "--email"],
stdin=in_process.stdout,
)
)
Expand Down