Skip to content

Redesign the set of mgit commands #73

@Reinmar

Description

@Reinmar

Right now we have a pretty messy situation where we have mgit bootstrap, mgit update, mgit co. The first two are quite similar, but none actually follows git pull and git fetch.

The initial idea was to follow Lerna's naming. But after a time we see that mgit should follow git's naming. Ideally, pretty much 1:1.

So, it could look like:

  • mgit pull – does what git pull does + clones missing repos
  • mgit co – checks out to branches listed in mgit.json
  • mgit co <branch> – checks out all repos to the given branch
  • mgit co -b <branch> – creates new branches (in all repos in which you have changes?)
  • mgit fetch – does what git fetch dies (+ clones missing repos?)
  • mgit push – does what git push does
  • mgit commit <params...> – does what git commit does
  • mgit save --branches – saves current configuration of branches to mgit.json
  • mgit save --hashes – saves hashes to mgit.json
  • mgit st – like today
  • mgit diff – like today
  • mgit exec – like today
  • mgit merge – to simplify closing multi-repo PRs

However, what we need to understand is whether these commands do match our workflow. I mean here the old mgit update which was actually a sum of the new mgit co && mgit pull. Are we ok with the fact that now you'll have to think more about what branches you're on and that mgit pull is not all if you were on some completely different setup previously?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions