Add ability to ignore submodules in diff and status #260
mathomp4
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR This release adds a new field to
components.yaml
,ignore_submodules
which whentrue
will ignore submodules in themepo status
andmepo diff
calls.A mepo oddity occurs in GEOSgcm because of how CICE and icepack are handled.
Technically, icepack is a submodule of CICE in the repo (see https://github.com/GEOS-ESM/CICE) and git sees it as that. However, currently GEOS handles icepack as a separate repo (most likely for ease of development) but git doesn't really know this. So when you go to CICE in GEOS in a fresh clone you see:
and since
mepo status
just sort of "echoes" status output withmepo status
we see:So git says "something changed" but we want to ignore that in this case.
Thus, this PR adds a new field to
components.yaml
,ignore_submodules
:If this is true, then we add
--ignore-submodules=all
to underlying git calls when we runmepo diff
andmepo status
From
CHANGELOG.md
Added
ignore_submodules
field incomponents.yaml
to allow ignoring submodules in a repo. Currently used forstatus
anddiff
commands.What's Changed
Full Changelog: v1.50.0...v1.51.0
This discussion was created from the release Add ability to ignore submodules in diff and status.
Beta Was this translation helpful? Give feedback.
All reactions