original_docstring: 
              Traverse through a pygit2 Tree object recursively, accumulating all
              the file paths and symlink info in the "blobs" dict
              
docstring: Traverse through a pygit2 Tree object recursively, accumulating all
  the file paths and symlink info in the "blobs" dict
docstring_tokens: Traverse through a pygit2 Tree object recursively accumulating all the file paths and symlink info in the " blobs " dict
code: def _traverse(tree, blobs, prefix):
              '''
              Traverse through a pygit2 Tree object recursively, accumulating all
              the file paths and symlink info in the "blobs" dict
              '''
              for entry in iter(tree):
                  if entry.oid not in self.repo:
                      # Entry is a submodule, skip it
                      continue
                  obj = self.repo[entry.oid]
                  if isinstance(obj, pygit2.Blob):
                      repo_path = salt.utils.path_join(prefix, entry.name)
                      blobs.setdefault('files', []).append(repo_path)
                      if stat.S_ISLNK(tree[entry.name].filemode):
                          link_tgt = self.repo[tree[entry.name].oid].data
                          blobs.setdefault('symlinks', {})[repo_path] = link_tgt
                  elif isinstance(obj, pygit2.Tree):
                      _traverse(obj, blobs, salt.utils.path_join(prefix, entry.name))
code_tokens: def _traverse ( tree , blobs , prefix ) : for entry in iter ( tree ) : if entry . oid not in self . repo : continue obj = self . repo [ entry . oid ] if isinstance ( obj , pygit2 . Blob ) : repo_path = salt . utils . path_join ( prefix , entry . name ) blobs . setdefault ( 'files' , [ ] ) . append ( repo_path ) if stat . S_ISLNK ( tree [ entry . name ] . filemode ) : link_tgt = self . repo [ tree [ entry . name ] . oid ] . data blobs . setdefault ( 'symlinks' , { } ) [ repo_path ] = link_tgt elif isinstance ( obj , pygit2 . Tree ) : _traverse ( obj , blobs , salt . utils . path_join ( prefix , entry . name ) )
short_docstring: Traverse through a pygit2 Tree object recursively, accumulating all
  the file paths and symlink info in the "blobs" dict
short_docstring_tokens: Traverse through a pygit2 Tree object recursively accumulating all the file paths and symlink info in the " blobs " dict
comment: '''
              Traverse through a pygit2 Tree object recursively, accumulating all
              the file paths and symlink info in the "blobs" dict
              '''$SEP$# Entry is a submodule, skip it