Skip to content

Commit

Permalink
Merge pull request #125 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 Nov 12, 2020
2 parents 0f0859b + 2c1d745 commit 2ef0081
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mepo.d/cmdline/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ def __diff(self):
'--name-only',
action = 'store_true',
help = 'Show only names of changed files')
diff.add_argument(
'--staged',
action = 'store_true',
help = 'Show diff of staged changes')
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 @@ -96,6 +96,8 @@ def run_diff(self, args=None):
cmd = self.__git + ' diff --color'
if args.name_only:
cmd += ' --name-only'
if args.staged:
cmd += ' --staged'
output = shellcmd.run(cmd.split(),output=True)
return output.rstrip()

Expand Down

0 comments on commit 2ef0081

Please sign in to comment.