class_docstr: Frontend to `git credential`
      
class_docstr_tok: ["Frontend","to","`","git","credential","`"]
code: def fill(self):
      # TODO we could prevent prompting by setting GIT_ASKPASS=true
      # unclear how to achieve the same on windows
      # would be better to use a special return value for no-prompt
      # with GIT_ASKPASS=true would just be an empty string
      out = self._get_runner().run(
          ["git", "credential", "fill"],
          protocol=StdOutErrCapture,
          stdin=self._format_props(),
      )
      attrs = _credspec2dict(StringIO(out["stdout"]))
      self._credential_props = attrs
      return self
  
file_path: datalad/datalad/local/gitcredential.py
imports: from io import StringIO
  from datalad.cmd import GitWitlessRunner, StdOutErrCapture
  from logging import getLogger
label_desc: Use image node_id 7 for calling the GitCredentialInterface obj's underlying member method code with example usage: obj.fill() and returns: self