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

display git status of all repos #56

Open
evanthegrayt opened this issue May 25, 2021 · 1 comment · May be fixed by #57
Open

display git status of all repos #56

evanthegrayt opened this issue May 25, 2021 · 1 comment · May be fixed by #57
Labels
enhancement New feature or request question Further information is requested

Comments

@evanthegrayt
Copy link
Owner

Add a -g option that goes through every repo and prints git status

@evanthegrayt evanthegrayt linked a pull request May 25, 2021 that will close this issue
@evanthegrayt
Copy link
Owner Author

evanthegrayt commented May 26, 2021

I'm conflicted about how I think this should behave. My thoughts:

  • No matter what, pushd to each directory, popd out.
    • This keeps the user's directory history clean if they have AUTO_PUSHD enabled (like I do)
  • In each directory, I could either
    • literally just call git status
      • This produces a lot of possibly unnecessary output
    • Check if the repo is dirty. If so, add it to an array and print at the end
      • Which git command should be run?
    • Have -g act like -w, and just print the git status of the directory passed as an argument
      • Coupled with this, -G could just loop through all
    • Let the user pick their own command by setting a variable, or even by specifying at runtime
      • Should I check to make sure it's a git command, or should I let them run whatever they want
      • Arbitrary code execution could be a huge security hazard, or accidents waiting to happen

After typing all these out, the -g and -G option are sounding the best to me right now. If anyone has any opinions, that'd be helpful.

@evanthegrayt evanthegrayt added the question Further information is requested label May 26, 2021
@evanthegrayt evanthegrayt added the enhancement New feature or request label Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant