Skip to content

Thoughts about --auto-pull --auto-push flags? #41

Open
@N2OMatt

Description

@N2OMatt

Hey ;D

I'm a "heavy" user of gitcheck... and I love it ;D

I work on multiple computers everyday - my laptop, my desktop, the company desktop,
and every once in a while, a remote server. Since I'm working at same projects
in all of them I constantly have to push all my changes and pull as well.

So, I run gitcheck --remote --quiet just to discover the repos that
have changed and after that I need go to every repo and push/pull accordingly.
That's sucks a lot... I mean the gitcheck is doing its job great but yet I
need do a lot of manual stuff :/

With that in mind, I implemented a crude --auto-push and --auto-pull flags.
They work like that:

  1. Check if repo has something to pull.
  2. Check if repo has something to push.
  3. If only pull is true - make a pull.
  4. If only push is true - make a push.

Yep, that's it... nothing fancy at this stage. But something interesting can
be worked out... like:

  • try to pull first and if no merge conflicts occurs then push.
  • if a merge conflict happened revert the merge.
  • etc...

I don't know if it's very specific to my work flow, or other ppl might
have similar "issues" with that - and if do you want something like that
in gitcheck at first place.

If it's something that sounds good to you I can refine my work in about 3,4 days
and submit a pull request ;D

Tell me what you think about it!

Cheers and thanks for gitcheck!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions