original_docstring: 
          Get list of directories for the target environment using GitPython
          
docstring: Get list of directories for the target environment using GitPython
docstring_tokens: Get list of directories for the target environment using GitPython
code: def dir_list(self, tgt_env):
          '''
          Get list of directories for the target environment using GitPython
          '''
          ret = set()
          tree = self.get_tree(tgt_env)
          if not tree:
              return ret
          if self.root(tgt_env):
              try:
                  tree = tree / self.root(tgt_env)
              except KeyError:
                  return ret
              relpath = lambda path: os.path.relpath(path, self.root(tgt_env))
          else:
              relpath = lambda path: path
          add_mountpoint = lambda path: salt.utils.path_join(self.mountpoint(tgt_env), path)
          for blob in tree.traverse():
              if isinstance(blob, git.Tree):
                  ret.add(add_mountpoint(relpath(blob.path)))
          if self.mountpoint(tgt_env):
              ret.add(self.mountpoint(tgt_env))
          return ret
code_tokens: def dir_list ( self , tgt_env ) : ret = set ( ) tree = self . get_tree ( tgt_env ) if not tree : return ret if self . root ( tgt_env ) : try : tree = tree / self . root ( tgt_env ) except KeyError : return ret relpath = lambda path : os . path . relpath ( path , self . root ( tgt_env ) ) else : relpath = lambda path : path add_mountpoint = lambda path : salt . utils . path_join ( self . mountpoint ( tgt_env ) , path ) for blob in tree . traverse ( ) : if isinstance ( blob , git . Tree ) : ret . add ( add_mountpoint ( relpath ( blob . path ) ) ) if self . mountpoint ( tgt_env ) : ret . add ( self . mountpoint ( tgt_env ) ) return ret
short_docstring: Get list of directories for the target environment using GitPython
short_docstring_tokens: Get list of directories for the target environment using GitPython
comment: '''
          Get list of directories for the target environment using GitPython
          '''