class_docstr: Git subclassed to never use persistent processes.
class_docstr_tok: ["Git","subclassed","to","never","use","persistent","processes","."]
code: def get_object_header(self, ref: str | bytes) -> tuple[str, str, int]:
      ret = subprocess.check_output(
          [self.GIT_PYTHON_GIT_EXECUTABLE, "cat-file", "--batch-check"],
          input=self._prepare_ref(ref),
          cwd=self._working_dir,
          timeout=2,
      )
      return self._parse_object_header(ret)
  
file_path: stable-diffusion-webui/modules/gitpython_hack.py
imports: from __future__ import annotations
  import io
  import subprocess
  import git
label_desc: Use image node_id 2 for calling the Git obj's underlying member method code with example usage: obj.get_object_header(ref) and returns: self