original_docstring: 
              Traverse through a dulwich Tree object recursively, accumulating
              all the file paths and symlinks info in the "blobs" dict
              
docstring: Traverse through a dulwich Tree object recursively, accumulating
  all the file paths and symlinks info in the "blobs" dict
docstring_tokens: Traverse through a dulwich Tree object recursively accumulating all the file paths and symlinks info in the " blobs " dict
code: def _traverse(tree, blobs, prefix):
              '''
              Traverse through a dulwich Tree object recursively, accumulating
              all the file paths and symlinks info in the "blobs" dict
              '''
              for item in six.iteritems(tree):
                  try:
                      obj = self.repo.get_object(item.sha)
                  except KeyError:
                      # Entry is a submodule, skip it
                      continue
                  if isinstance(obj, dulwich.objects.Blob):
                      repo_path = salt.utils.path_join(prefix, item.path)
                      blobs.setdefault('files', []).append(repo_path)
                      mode, oid = tree[item.path]
                      if stat.S_ISLNK(mode):
                          link_tgt = self.repo.get_object(oid).as_raw_string()
                          blobs.setdefault('symlinks', {})[repo_path] = link_tgt
                  elif isinstance(obj, dulwich.objects.Tree):
                      _traverse(obj, blobs, salt.utils.path_join(prefix, item.path))
code_tokens: def _traverse ( tree , blobs , prefix ) : for item in six . iteritems ( tree ) : try : obj = self . repo . get_object ( item . sha ) except KeyError : continue if isinstance ( obj , dulwich . objects . Blob ) : repo_path = salt . utils . path_join ( prefix , item . path ) blobs . setdefault ( 'files' , [ ] ) . append ( repo_path ) mode , oid = tree [ item . path ] if stat . S_ISLNK ( mode ) : link_tgt = self . repo . get_object ( oid ) . as_raw_string ( ) blobs . setdefault ( 'symlinks' , { } ) [ repo_path ] = link_tgt elif isinstance ( obj , dulwich . objects . Tree ) : _traverse ( obj , blobs , salt . utils . path_join ( prefix , item . path ) )
short_docstring: Traverse through a dulwich Tree object recursively, accumulating
  all the file paths and symlinks info in the "blobs" dict
short_docstring_tokens: Traverse through a dulwich Tree object recursively accumulating all the file paths and symlinks info in the " blobs " dict
comment: '''
              Traverse through a dulwich Tree object recursively, accumulating
              all the file paths and symlinks info in the "blobs" dict
              '''$SEP$# Entry is a submodule, skip it