mirror of
https://github.com/taigrr/mg.git
synced 2026-04-02 03:28:42 -07:00
9ad9412a8cd30bae18a9a98a0de2f3d3495314a8
Removed hardcoded alias handling (unregister, git_gc) in favor of dynamically loading all key-value pairs from the [DEFAULT] section into the Aliases map. This allows mrconfig files to define custom aliases without code changes. - Simplified switch statement in LoadMRConfig - Updated function documentation - All tests passing
mg
Golang replacement for myrepos which only supports git repos.
This app will support the following subcommands:
- mg commit
- mg push
- mg status
- mg diff
- mg pull
- mg fetch
- mg register
- mg unregister
Passing the -jX argument will spin up X jobs simultaneously
mg supports loading an existing ~/.mrconfig and migrating it to ~/.config/mg.conf, provided no mg.conf file exists.
Improvements over mr:
- No external dependencies (even git!*)
- More output options (summary of failures)
- More deterministic behavior (global vs local run, register from git project subdir)
- Exports public functions and can be embedded into other Go programs idiomatically
Why to stick with mr:
- If you need support for non-git VCS tooling
- If you want to use the mr plugin ecosystem
*: custom-registered commands may rely on external applications.
Languages
Go
100%