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

Crawl into directories to find multiple repositories #4

Open
creedasaurus opened this issue Apr 5, 2021 · 2 comments
Open

Crawl into directories to find multiple repositories #4

creedasaurus opened this issue Apr 5, 2021 · 2 comments

Comments

@creedasaurus
Copy link

First off, this is awesome. Thank you for making the internet a better place by creating this fun tool. It made my day.

Just as an idea, what if we could have this take a directory, and then upon not finding a .git repo, crawl into the child directories and collect commits from any it finds and analyze them together. Just thinking about that since our teams are often working across many repos. Just a thought.

If I have some time this week, maybe I'll take a crack at it.

😁

@soypat
Copy link
Owner

soypat commented Apr 5, 2021

Sounds great! Keep in mind you should be running prose.NewDocument once since it has an extremely high overhead. This just means you'll probably have to accumulate commits on each repo before finally processing using prose.

@alephnull
Copy link

This is well within the capabilities of the shell. To look at all *.git dirs (bare repos):

for i in *.git
do
    cd $i
    gitaligned --json | jq --arg repo ${i:r} '.[] | .+{repo: $repo}'
    cd -q -
done | jq -s

Gives you an array with each record also containing the repo name.

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

No branches or pull requests

3 participants