Changeset 29f9e10 in rtems-tools


Ignore:
Timestamp:
Nov 26, 2018, 12:51:22 AM (5 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
a4fbd16
Parents:
af5cecf
git-author:
Chris Johns <chrisj@…> (11/26/18 00:51:22)
git-committer:
Chris Johns <chrisj@…> (11/26/18 03:37:09)
Message:

rtemstoolkit/git: Ignore untracked files in the dirty state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/git.py

    raf5cecf r29f9e10  
    153153    def dirty(self):
    154154        _status = self.status()
    155         return not (len(_status) == 1 and 'branch' in _status)
     155        status_keys = list(_status.keys())
     156        if 'untracked' in status_keys:
     157            status_keys.remove('untracked')
     158        return not (len(status_keys) == 1 and 'branch' in _status)
    156159
    157160    def valid(self):
Note: See TracChangeset for help on using the changeset viewer.