Repo status overview#1017
Merged
spacewander merged 3 commits intotj:masterfrom Jan 13, 2023
guenhter:repo-status-overview
Merged
Repo status overview#1017spacewander merged 3 commits intotj:masterfrom guenhter:repo-status-overview
spacewander merged 3 commits intotj:masterfrom
guenhter:repo-status-overview
Conversation
spacewander
reviewed
Jan 10, 2023
Collaborator
There was a problem hiding this comment.
Why revert it to an old version?
Contributor
Author
There was a problem hiding this comment.
Maybe you can confirm that it seems that git first resolves the -n 1 and then it resolves --reverse what ends up in not getting the first commit but the latest.
Contributor
Author
There was a problem hiding this comment.
My tests gave me the following:
$ git log --reverse --pretty=oneline --format="%ar" -n 1
6 days ago
$ git log --reverse --pretty=oneline --format="%ar" | head -n 1
12 years ago
Contributor
Author
There was a problem hiding this comment.
Also the git-log documentation says so:
Commit Limiting
...
Note that these are applied before commit ordering and formatting options, such as --reverse.-, -n , --max-count=
Limit the number of commits to output.
spacewander
approved these changes
Jan 12, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #1006
This changes allow to print the summary of all the repositories in a table like this:
Additionally, the age info was fixed in the summary command. Using
git log --reversed -n 1actually gives the latest commit, not the oldest.