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

Option to include the current directory? #22

Open
chmac opened this issue May 15, 2022 · 2 comments
Open

Option to include the current directory? #22

chmac opened this issue May 15, 2022 · 2 comments

Comments

@chmac
Copy link

chmac commented May 15, 2022

I have a directory setup like so:

  • foo/ - git repo
  • foo/bar/ - git repo
  • foo/baz/ - git repo

I'm running commands like git multi in foo/, which lists the status of foo/bar/ and foo/baz/. So then I end up running things like git status; git multi. I wonder if there is already an option to include the current directory as well? Or if it doesn't exist, if you'd be open to adding it?

Also, thanks a lot for git plus, I was planning to write my own implementation and I was delighted to find this and save the work. 🧡

@tkrajina
Copy link
Owner

There is one option that might help you, but only if you use git multi from a parent of foo. There is a depth command line option which will tell the tool to search recursively. So:

cd ..
git multi -d 2 status

...should be, not exactly what you need, but relatively close.

@chmac
Copy link
Author

chmac commented May 23, 2022

@tkrajina That's neat, thanks. Yeah, with this and some filtering I could probably write some simple aliases to switch directories, run the command, and then switch back. Or a bash script. Will definitely help me find a workaround. Awesome!

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