When parsing files it would be helpful to add author information from the git history.
Here's the data we need:
- Who edited the file last
- Who created the file
- When it was last edited
- When it was created
This data can be fetched from the git history.
Getting last author to edit the file
git log -1 --format="%an <%ae> on %ad" -- <filename>
Getting the original creator
git log --diff-filter=A --pretty=format:"%an" <filename>
This should be added to the footer of all pages and should be added to the HTML metadata.
<meta name="author" content="AUTHOR_HERE">
Check that we're in a git repo and have git installed before trying to get this info.
When parsing files it would be helpful to add author information from the git history.
Here's the data we need:
This data can be fetched from the git history.
Getting last author to edit the file
Getting the original creator
This should be added to the footer of all pages and should be added to the HTML metadata.
Check that we're in a git repo and have git installed before trying to get this info.