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

mgit --watch #48

Open
pjasiun opened this issue Mar 21, 2017 · 4 comments
Open

mgit --watch #48

pjasiun opened this issue Mar 21, 2017 · 4 comments

Comments

@pjasiun
Copy link

pjasiun commented Mar 21, 2017

Since I always forget to change mgit.json/package.json while I develop and whenever I ask someone to check my branch I need to give him the whole list of branches I realized that the mgit --watch tool would be very useful. It would watch all subbranches and whenever branch changes its saves it to the mgit.json or package.json (see #29).

@Reinmar
Copy link
Member

Reinmar commented Mar 21, 2017

I'm not sure this is actually feasible. Unless there's some file in .git/ that we can watch with the fs watcher.

Other than that, it's an interesting feature request. Although, I'm afraid that it wouldn't be very popular and requiring one to launch mgit --watch would be annoying. You can forget doing this too.

@Reinmar
Copy link
Member

Reinmar commented Mar 21, 2017

Alternatively, mgit could install some git hook in the child repositories, so whenever you checkout something there, it updates the parent project. This would be more convenient.

@pjasiun
Copy link
Author

pjasiun commented Mar 21, 2017

I'm not sure this is actually feasible. Unless there's some file in .git/ that we can watch with the fs watcher.

> cat .git/HEAD
ref: refs/heads/master
> cat .git/refs/heads/master
55e1fbe0cd4ebacf55026c6d18801044cb313ba4

Tadam!

@pjasiun
Copy link
Author

pjasiun commented Mar 21, 2017

Alternatively, mgit could install some git hook in the child repositories, so whenever you checkout something there, it updates the parent project. This would be more convenient.

Sounds cool too.

Although, I'm afraid that it wouldn't be very popular and requiring one to launch mgit --watch would be annoying. You can forget doing this too.

Well, on the other hand, it's nice that you can enable it whenever you want, but if you do not need it you can turn it off and no one is chaning your *.json files.

@Mgsy Mgsy added this to the next milestone Jul 22, 2019
@pomek pomek removed this from the nice-to-have milestone Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants