+
    ~j                         R t ^ RIt^ RIt^RIHt ^RIHtHt ]P                  ! R]P                  ]P                  ,          ]P                  ,          R7      tRR R lltRR R	 lltRR
 R lltR R ltR# )z-Contains utilities to manage Git credentials.N)ENDPOINT)run_interactive_subprocessrun_subprocessz
        ^\s* # start of line
        credential\.helper # credential.helper value
        \s*=\s* # separator
        ([\w\-\/]+) # the helper name or absolute path (group 1)
        (\s|$) # whitespace or end of line
    )flagsc                T    V ^8  d   QhR\         R,          R\        \         ,          /# )   folderNreturnstrlist)formats   "z/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/huggingface_hub/utils/_git_credential.py__annotate__r   #   s"     " "C$J "$s) "    c                     \        RV R7      P                  p\        V4      pV#   \        P                   d   p\        TP                  4      hRp?ii ; i)aw  Return the list of git credential helpers configured.

See https://git-scm.com/docs/gitcredentials.

Credentials are saved in all configured helpers (store, cache, macOS keychain,...).
Calls "`git credential approve`" internally. See https://git-scm.com/docs/git-credential.

Args:
    folder (`str`, *optional*):
        The folder in which to check the configured helpers.
zgit config --listr   N)r   stdout_parse_credential_output
subprocessCalledProcessErrorOSErrorstderr)r   outputparsedexcs   &   r   list_credential_helpersr   #   sN    " 3FCJJ)&1(( "cjj!!"s   #& AAAc                N    V ^8  d   QhR\         R\         R\         R,          RR/# )r   tokenusernamer   Nr	   r   )r   s   "r   r   r   7   s-      c S cDj \` r   c                    \        RVR7      ;_uu_ 4       w  ppVP                  R\         RVP                  4        RV  R24       VP	                  4        RRR4       R#   + '       g   i     R# ; i)a  Save a username/token pair in git credential for HF Hub registry.

Credentials are saved in all configured helpers (store, cache, macOS keychain,...).
Calls "`git credential approve`" internally. See https://git-scm.com/docs/git-credential.

Args:
    username (`str`, defaults to `"hf_user"`):
        A git username. Defaults to `"hf_user"`, the default user used in the Hub.
    token (`str`, defaults to `"hf_user"`):
        A git password. In practice, the User Access Token for the Hub.
        See https://huggingface.co/settings/tokens.
    folder (`str`, *optional*):
        The folder in which to check the configured helpers.
zgit credential approver   url=z

username=z

password=z

N)r   writer   lowerflush)r   r   r   stdin_s   &&&  r   set_git_credentialr(   7   sa     
$$<V	L	L Q	d8*K0@/AUGSWXY 
M	L	L	Ls   AA!!A2	c                B    V ^8  d   QhR\         R\         R,          RR/# )r   r   r   Nr	   r    )r   s   "r   r   r   N   s&      3 C$J RV r   c                   \        RVR7      ;_uu_ 4       w  ppR\         R2pV e   VRV P                  4        R2,          pVR,          pVP                  V4       VP	                  4        RRR4       R#   + '       g   i     R# ; i)a1  Erase credentials from git credential for HF Hub registry.

Credentials are erased from the configured helpers (store, cache, macOS
keychain,...), if any. If `username` is not provided, any credential configured for
HF Hub endpoint is erased.
Calls "`git credential erase`" internally. See https://git-scm.com/docs/git-credential.

Args:
    username (`str`, defaults to `"hf_user"`):
        A git username. Defaults to `"hf_user"`, the default user used in the Hub.
    folder (`str`, *optional*):
        The folder in which to check the configured helpers.
zgit credential rejectr   r"   
Nz	username=)r   r   r$   r#   r%   )r   r   r&   r'   standard_inputs   &&   r   unset_git_credentialr-   N   s|     
$$;F	K	K P	z,	(..*:);2>>N$N# 
L	K	K	Ks   AA77B	c                F    V ^8  d   QhR\         R\        \         ,          /# )r   r   r	   r
   )r   s   "r   r   r   i   s      S T#Y r   c                t    \        \        P                  V 4       Uu0 uF  q^ ,          kK  	  up4      # u upi )zParse the output of `git credential fill` to extract the password.

Args:
    output (`str`):
        The output of `git credential fill`.
)sortedGIT_CREDENTIAL_REGEXfindall)r   matchs   & r   r   r   i   s=     "6">">v"F	
"F!HH"F	
 	
s   5)N)hf_userN)__doc__rer   	constantsr   _subprocessr   r   compile	MULTILINE
IGNORECASEVERBOSEr1   r   r(   r-   r    r   r   <module>r>      s[    4 	    C zz ,,
&
3	 "(.6r   