fboender / multi-git-status

Show uncommitted, untracked and unpushed changes for multiple Git repos
MIT License
470 stars 73 forks source link

A "no" depth option #58

Closed peter-lyons-kehl closed 6 months ago

peter-lyons-kehl commented 6 months ago

Thank you for mgitstatus Ferry.

Could you consider a "no depth" option? Beneficial when passing all repository names that the user wants to check.

Furthermore, there are use cases when the user may get noise even from -d 1 and the user would like "no depth." My recent use case:

Thank you in advance for considering.

UPDATE: I've realized that I could run mgitstatus -e camigo-workspace. But that works only in this instance (because all other repos that I'm interested in are symlinked from under camigo-workspace/). So that is not a general solution.

fboender commented 6 months ago

I've implemented a --no-depth option that doesn't recurse into subdirectories at all:

 $ ls -l testtest/multi-git-status
lrwxrwxrwx 1 fboender fboender 20 May  1 09:29 testtest/multi-git-status -> ../multi-git-status/

$ mgitstatus --no-depth testtest
testtest: Uncommitted changes Untracked files 

$ mgitstatus --no-depth testtest/multi-git-status
testtest/multi-git-status: ok 

I think this is what you want?

peter-lyons-kehl commented 6 months ago

Wow. Yes yes. Thank you Ferry.