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

(Feature request) Check and Clean up #304

Open
simenandre opened this issue Nov 28, 2020 · 2 comments
Open

(Feature request) Check and Clean up #304

simenandre opened this issue Nov 28, 2020 · 2 comments

Comments

@simenandre
Copy link

Hello!

Thank you for a great project. I recently built a tool to clean up my repository folder (https://github.com/cobraz/organize-repo-folder) and posted it to Reddit for some feedback. A great guy by the name of PaulCapestany tipped me about ghq. This tool is so much better than my organizational tool, so I totally replaced mine with yours.

However, when I built organize-repo-folder, one of the features that I meant to add was a way to analyze when I worked on the project last, if there were any uncommitted changes and if everything was pushed. This way I could determine automatically if I could remove the repositories that I no longer worked on. I would love to see this feature added to ghq.

I think it could be added as a few commands, e.g. ghq check. This command would go through all repositories, check if they have uncommitted changes/stashes/untracked files. and ghq cleanup --since 60d would first do the same as ghq check, and also check if there are any files updated for more than 60 days ago if there is no result on ghq check too, it would delete them. Of course with some are you sure (y/N) thing as well (unless --force is appended).

What do you think? I would love to contribute if you would accept a pull request with this :)

re #299

@simenandre simenandre changed the title Clean up (Feature request) Check and Clean up Nov 28, 2020
@lorenzleutgeb
Copy link

lorenzleutgeb commented Apr 12, 2021

Came here to ask for essentially the same feature. For me, the most important thing would be to find all repos that have a dirty working directory, but what @cobraz suggests is even better! Please make it happen!

@simenandre
Copy link
Author

I would love to help out! /cc @Songmu @motemen

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

2 participants