third_party/blink/tools/blinkpy/common/checkout/git.py
def unstaged_changes(self):
        """Lists files with unstaged changes, including untracked files.

        Returns a dict mapping modified file paths (relative to checkout root)
        to one-character codes identifying the change, e.g. 'M' for modified,
        'D' for deleted, '?' for untracked.
        """
        # `git status -z` is a version of `git status -s`, that's recommended
        # for machine parsing. Lines are terminated with NUL rather than LF.
        change_lines = self.run(['status', '-z',
                                 '--untracked-files=all']).rstrip('\x00')
        if not change_lines:
            return {}  # No changes.
        unstaged_changes = {}
        for line in change_lines.split('\x00'):
            assert len(line) >= 4, 'Unexpected change line format %s' % line
            if line[1] == ' ':
                continue  # Already staged for commit.
            path = line[3:]
            unstaged_changes[path] = line[1]
        return unstaged_changes
Lists files with unstaged changes, including untracked files.

        Returns a dict mapping modified file paths (relative to checkout root)
        to one-character codes identifying the change, e.g. 'M' for modified,
        'D' for deleted, '?' for untracked.
        
Lists files with unstaged changes, including untracked files.
Returns a dict mapping modified file paths (relative to checkout root)
to one-character codes identifying the change, e.g.
Lists files with unstaged changes including untracked files . Returns a dict mapping modified file paths ( relative to checkout root ) to one - character codes identifying the change e . g .
def unstaged_changes(self):
        change_lines = self.run(['status', '-z',
                                 '--untracked-files=all']).rstrip('\x00')
        if not change_lines:
            return {}  
        unstaged_changes = {}
        for line in change_lines.split('\x00'):
            assert len(line) >= 4, 'Unexpected change line format %s' % line
            if line[1] == ' ':
                continue  
            path = line[3:]
            unstaged_changes[path] = line[1]
        return unstaged_changes
def unstaged_changes ( self ) : change_lines = self . run ( [ 'status' , '-z' , '--untracked-files=all' ] ) . rstrip ( '\x00' ) if not change_lines : return { } unstaged_changes = { } for line in change_lines . split ( '\x00' ) : assert len ( line ) >= 4 , 'Unexpected change line format %s' % line if line [ 1 ] == ' ' : continue path = line [ 3 : ] unstaged_changes [ path ] = line [ 1 ] return unstaged_changes
Lists files with unstaged changes, including untracked files.
Lists files with unstaged changes including untracked files .
"""Lists files with unstaged changes, including untracked files.

        Returns a dict mapping modified file paths (relative to checkout root)
        to one-character codes identifying the change, e.g. 'M' for modified,
        'D' for deleted, '?' for untracked.
        """ # `git status -z` is a version of `git status -s`, that's recommended # for machine parsing. Lines are terminated with NUL rather than LF. # No changes. # Already staged for commit.
self