class_docstr: A WitlessRunner for git and git-annex commands.
  
  See GitRunnerBase it mixes in for more details
class_docstr_tok: ["A","WitlessRunner","for","git","and","git-annex","commands",".","See","GitRunnerBase","it","mixes","in","for","more","details"]
docstr: Run a git-style command multiple times if `files` is too long,
  using a generator protocol, i.e. a protocol that is
  derived from `datalad.runner.protocol.GeneratorMixIn`.
  
  Parameters
  ----------
  see GitWitlessRunner.run_on_filelist_chunks() for a definition
  of parameters
  
  Returns
  -------
  Generator that yields output of the cmd
docstr_tok: ["Run","a","git-style","command","multiple","times","if","`","files","`","is","too","long",",","using","a","generator","protocol",",","i.e",".","a","protocol","that","is","derived","from","`","datalad.runner.protocol.GeneratorMixIn","`",".","Parameters","--","--","--","--","--","see","GitWitlessRunner.run_on_filelist_chunks","(",")","for","a","definition","of","parameters","Returns","--","--","--","-","Generator","that","yields","output","of","the","cmd"]
code: def run_on_filelist_chunks_items_(
      self,
      cmd,
      files,
      *,
      protocol=None,
      cwd=None,
      env=None,
      pathspec_from_file: Optional[bool] = False,
      **kwargs,
  ):
      """
      Run a git-style command multiple times if `files` is too long,
      using a generator protocol, i.e. a protocol that is
      derived from `datalad.runner.protocol.GeneratorMixIn`.
  
      Parameters
      ----------
      see GitWitlessRunner.run_on_filelist_chunks() for a definition
      of parameters
  
      Returns
      -------
      Generator that yields output of the cmd
      """
  
      assert issubclass(protocol, GeneratorMixIn), (
          "cannot use GitWitlessRunner.run_on_filelist_chunks_items_() "
          "with a protocol that does not inherits GeneratorMixIn, use "
          "GitWitlessRunner.run_on_filelist_chunks() instead"
      )
  
      for chunk_generator in self._get_chunked_results(
          cmd=cmd,
          files=files,
          protocol=protocol,
          cwd=cwd,
          env=env,
          pathspec_from_file=pathspec_from_file,
          **kwargs,
      ):
          yield from chunk_generator
  
imports: import logging
  import os
  import os.path
  from typing import Optional
  from datalad.dochelpers import borrowdoc
  from datalad.utils import generate_file_chunks, make_tempfile
  from .runner import GeneratorMixIn, WitlessRunner
label_desc: Use image node_id 5 for calling the GitWitlessRunner obj's underlying member method code with example usage: obj.run_on_filelist_chunks_items_(cmd, files) without return types