Skip to content

Conversation

@guenhter
Copy link
Contributor

Add a few more fields to the summary:

$ git summary                                                                                                                                                                                   

 project     : configservice
 repo age    : 3 months
 last active : 3 weeks ago  (new)
 active on   : 9 days   (renamed from "active" -> "active on")
 commits     : 20
 files       : 45
 uncommitted : 1      (new)
 authors     :
     8  Michael Mayr   40.0%
     5  Simon Gaudek   25.0%
     5  guenthgr       25.0%
     2  Günther Grill  10.0%

Copy link
Collaborator

@spacewander spacewander left a comment

Choose a reason for hiding this comment

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

Let's update the doc relative to this command

bin/git-summary Outdated
# fetch repository age of the latest commit
#
last_active() {
git log --pretty=oneline --format="%ar" | head -n 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
git log --pretty=oneline --format="%ar" | head -n 1
git log --pretty=oneline --format="%ar" -n 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

active : 93 days
files : 111
authors :
project : express
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:) oh I see. Only the MD file must be manually adapted. When modifiying the x.1 file I already wondered how people can modify this file with all the tags and making no mistake. Thx for pointing this out.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@spacewander Done.

@spacewander spacewander merged commit cd348da into tj:master Jan 4, 2023
@guenhter guenhter deleted the add-summary-fields branch January 4, 2023 05:45
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