+
    €7*i)  c                  sN   € R t ^ RIHt ^ RIt^ RIHt R R ltR R ltR R	 ltR# )
zjGit utilities, adopted from mypy's git utilities (https://github.com/python/mypy/blob/master/mypy/git.py).)ÚannotationsN)ÚPathc               ó    € V ^8„  d   QhRRRR/# )é   Údirr   ÚreturnÚbool© ©Zformató   "Ú</usr/lib/python3.14/site-packages/pydantic/_internal/_git.pyÚ__annotate__r   	   s   € ÷ )ñ )Tð )˜dñ )ó    c                s@   € V P                  R4      P                  4       # )z3Is the given directory version-controlled with git?z.git)ZjoinpathZexists©r   ó   &r
   Úis_git_repor   	   s   € à<‰<˜Ó×&Ñ&Ó(Ð(r   c               s   € V ^8„  d   QhRR/# )r   r   r   r   r   r	   r
   r   r      s   € ÷ ñ $ñ r   c                 sŠ   €  \         P                  ! RR.4       R#   \         P                   d     R# \         d     R# i ; i)zCan we run the git executable?Úgitz--helpTF)Ú
subprocessÚcheck_outputZCalledProcessErrorZOSErrorr   r   r
   Úhave_gitr      s@   € ðÜ×Ò ¨Ð 1Ô2ÙøÜ×(Ñ(ô ÚÜô Úðús   ‚ œA´A½AÁAc               r   )r   r   r   r   Zstrr   r   r	   r
   r   r      s   € ÷ mñ mdð m˜sñ mr   c                sp   € \         P                  ! . ROV R7      P                  R4      P                  4       # )z.Get the SHA-1 of the HEAD of a git repository.)Zcwdzutf-8)r   z	rev-parsez--shortZHEAD)r   r   ZdecodeZstripr   r   r
   Úgit_revisionr      s,   € ä×"Ò"Ò#JÐPSÔT×[Ñ[Ð\cÓd×jÑjÓlÐlr   )	Z__doc__Z
__future__r    r   Zpathlibr   r   r   r   r   r   r
   Ú<module>r      s!   ðÙ på "ã Ý õ)õ
÷mr   