Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tag-statistics): add support for tag statistics #2

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

johanhammar
Copy link
Contributor

Hi!

Inspired by https://gitstats.sourceforge.net/examples/dokuwiki/tags.html I built something similar in GitAnalyzed

@@ -87,6 +88,45 @@ daysSinceLastCommit() {
echo "Days since the last commit: $days_since_last_commit" >"$GITANALYZED_FOLDER/$FILENAME_DAYS_SINCE_LAST_COMMIT"
}

calculateCommitsPerTag() {
if [[ "$(uname | tr '[:upper:]' '[:lower:]')" == "darwin" ]]; then
tag_date=$(date -jf "%Y-%m-%d" "$(git log -1 --format=%ai "$1")" "+%s")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately not tested on MacOS

@mikaelvesavuori
Copy link
Owner

Nice work, @johanhammar!

Works fine on MacOS. Merging it.

@mikaelvesavuori mikaelvesavuori merged commit f27caa9 into mikaelvesavuori:main Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants