StreakyCobra / gws

Colorful KISS helper for git workspaces
https://streakycobra.github.io/gws/
MIT License
235 stars 22 forks source link

Remove repon not under gws controll or detect rename #32

Closed JohanSpaedtke closed 7 years ago

JohanSpaedtke commented 7 years ago

Yes I know you don't want gws to be destructive but I'll write this issue any way :)

Imagine the following .projects.gws

team1/repo1 | url1
team1/repo2 | url2
team2/repo3 | url3

is changed into the following

team1/repo1 | url1
team2/repo2 | url2
team2/repo3 | url3

Then it would be nice to run eg.

gws purge

and have it notice that

team1/repo2 | url2

no longer exists and therefore remove it.

emlun commented 7 years ago

You're right, I won't add a "purge" command. :) But I agree that a way to detect this would be good to have. Fortunately, the check command already fulfills this need nicely. ;)

JohanSpaedtke commented 7 years ago

Ok next time I'll actually read the documentation first... Check will do 90% of what i want :) Ty very much.