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

Add summary fields #1013

Merged
merged 1 commit into from Jan 4, 2023
Merged

Add summary fields #1013

merged 1 commit into from Jan 4, 2023

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

.gitignore Outdated Show resolved Hide resolved
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.

Let's update the md file and generate the doc via https://github.com/tj/git-extras/tree/master/man#how-to-generate-documentation

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.

None yet

2 participants