def untracked_files(git=git, paths=None):
 if (paths is None):
  paths = []
 args = ([u'--'] + paths)
 out = git.ls_files(z=True, others=True, exclude_standard=True, *args)[STDOUT]
 if out:
  return out[:(-1)].split(u'\x00')
 return []

def untracked_files ( git = git , paths = None ) : if ( paths is None ) : paths = [ ] args = ( [ u'--' ] + paths ) out = git . ls_files ( z = True , others = True , exclude_standard = True , * args ) [ STDOUT ] if out : return out [ : ( - 1 ) ] . split ( u'\x00' ) return [ ]
returns a sorted list of untracked files .