code: def get_git_status(git_path='git'):
      
      status_output = subprocess.call((git_path, 'diff-files', '--quiet'))
      if status_output != 0:
          return 'UNCLEAN: Modified working tree'
      else:
          # check index for changes
          status_output = subprocess.call((git_path, 'diff-index', '--cached',
                                           '--quiet', 'HEAD'))
          if status_output != 0:
              return 'UNCLEAN: Modified index'
          else:
              return 'CLEAN: All modifications committed'
docs: Returns the state of the git working copy