Skip to content

Commit

Permalink
Merge pull request #222 from GEOS-ESM/develop
Browse files Browse the repository at this point in the history
Merge develop into main for release
  • Loading branch information
mathomp4 authored Mar 29, 2022
2 parents d8d2abc + d38188a commit fbc77d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## [1.42.0] - 2022-03-29

### Added

- Added `-b/--ignore-space-change` option to `mepo diff`

## [1.41.0] - 2022-03-25

### Changed
Expand Down
4 changes: 4 additions & 0 deletions mepo.d/cmdline/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ def __diff(self):
'--staged',
action = 'store_true',
help = 'Show diff of staged changes')
diff.add_argument(
'-b','--ignore-space-change',
action = 'store_true',
help = 'Ignore changes in amount of whitespace')
diff.add_argument(
'comp_name',
metavar = 'comp-name',
Expand Down
2 changes: 2 additions & 0 deletions mepo.d/repository/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def run_diff(self, args=None):
cmd += ' --name-status'
if args.staged:
cmd += ' --staged'
if args.ignore_space_change:
cmd += ' --ignore-space-change'
output = shellcmd.run(shlex.split(cmd),output=True)
return output.rstrip()

Expand Down

0 comments on commit fbc77d4

Please sign in to comment.