Skip to content

Add summary fields#1013

Merged
spacewander merged 1 commit intotj:masterfrom
guenhter:add-summary-fields
Jan 4, 2023
Merged

Add summary fields#1013
spacewander merged 1 commit intotj:masterfrom
guenhter:add-summary-fields

Conversation

@guenhter
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread .gitignore Outdated
Comment thread bin/git-summary Outdated
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread man/git-summary.1 Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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