Add changed-files command
This release adds a new changed-files
command to mepo. Essentially it will list all files that are different compared to the original tags/branches in the components.yaml
(technically the mepo state, so if mepo save
was run, the new components.yaml
).
For example, if there are no changes:
❯ mepo compare
No repositories have changed
❯ mepo changed-files
Now we checkout a branch:
❯ mepo develop MAPL
Checking out development branch develop in MAPL
❯ mepo changed-files
./src/Shared/@MAPL/CHANGELOG.md
./src/Shared/@MAPL/generic/MAPL_Generic.F90
This shows that compared to where we started, we have two new files. Now let us alter a file and add a file:
❯ touch foo
❯ echo "bobob" >> src/Components/@GEOSgcm_GridComp/README.md
❯ mepo changed-files
./foo
./src/Shared/@MAPL/CHANGELOG.md
./src/Shared/@MAPL/generic/MAPL_Generic.F90
./src/Components/@GEOSgcm_GridComp/README.md
Finally, it has a --full-path
option for a full path.
❯ mepo changed-files --full-path
/Users/mathomp4/Models/GEOSgcm-mepo-newfilesvorigin/GEOSgcm/foo
/Users/mathomp4/Models/GEOSgcm-mepo-newfilesvorigin/GEOSgcm/src/Shared/@MAPL/CHANGELOG.md
/Users/mathomp4/Models/GEOSgcm-mepo-newfilesvorigin/GEOSgcm/src/Shared/@MAPL/generic/MAPL_Generic.F90
/Users/mathomp4/Models/GEOSgcm-mepo-newfilesvorigin/GEOSgcm/src/Components/@GEOSgcm_GridComp/README.md
From CHANGELOG.md
Added
- Add new
changed-files
command to list all changed files vs original state
What's Changed
- Add ability to display changed files by @mathomp4 in #236
- GitFlow: Merge Develop into Main for release by @mathomp4 in #237
Full Changelog: v1.45.0...v1.46.0