Skip to content

Updates to status and compare

Choose a tag to compare

@mathomp4 mathomp4 released this 16 Jan 12:44
· 491 commits to develop since this release

This release has some updates to mepo status and mepo compare as well as inclusion of mepo-cd, a Bash function that uses mepo whereis to "know" how to cd into a component.

The status update involves making it more readable. Previous output was based on git status --short:

MAPL                   | (t) v1.1.12 (DH)
   |  M GMAO_pFIO/tests/test_RequestDataMessage.pf
   |  D README.md
   | RD CHANGELOG.md -> yaya
   | ?? bobo

which is a bit obscure. The new output tries to decode the output:

MAPL                   | (t) v1.1.12 (DH)
   | GMAO_pFIO/tests/test_RequestDataMessage.pf: modified, not staged
   |                                  README.md: deleted, not staged
   |                               CHANGELOG.md: renamed, staged as yaya but deleted, not staged
   |                                       bobo: untracked file

Most simple cases that should be encountered have been handled, though things like weird merges won't decode yet.

As for compare, the main change is to try and detect the size of a terminal. If it's wide enough, the command won't wrap.

Finally, mepo-cd is a way to cd into a Component a la mepo-cd MAPL. It's a Bash function only at the moment.