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

Allow to run git-extras within git-bulk #1008

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Allow to run git-extras within git-bulk #1008

merged 1 commit into from
Dec 7, 2022

Conversation

guenhter
Copy link
Contributor

@guenhter guenhter commented Dec 1, 2022

When you execute

git bulk summary

it only summarizes the first found repo.
The reason for it seems to be some stdin ... read ... blah stuff (https://stackoverflow.com/a/13800476/5247292)

Therefore I changed the way the single repos of the bulk operation are worked off to avoid stdin when in the loop

Fix #1007

@spacewander
Copy link
Collaborator

It seems that the summary only shows part of the data. Running the command on my machine, got:

 git bulk -a summary
Core command "summary" accepted.
-> executing git summary

 project  : git-extras
 repo age : 12 years
 active   : 795 days
 commits  : 1688
 files    : 315
 authors  :

@guenhter
Copy link
Contributor Author

guenhter commented Dec 2, 2022

Hm, interesting.

@guenhter
Copy link
Contributor Author

guenhter commented Dec 5, 2022

Seems like I fall into the trap of git shortlog

If no revisions are passed on the command line and either standard input is not a terminal or there is no current branch, git shortlog will output a summary of the log read from standard input, without reference to the current repository.

I fixed that in the git-extras by passing always a reference to the git shortlog

@spacewander spacewander merged commit 7c4152c into tj:master Dec 7, 2022
@guenhter guenhter deleted the git-bulk-can-run-git-extras branch January 16, 2023 06:40
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.

Feature: Allow to combine git bulk with other commands of the git-extras
2 participants