+
    i)                    N    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 )formats   "^/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pydantic/_internal/_git.py__annotate__r   	   s     ) )T )d )    c                @    V P                  R4      P                  4       # )z3Is the given directory version-controlled with git?z.git)joinpathexistsr   s   &r   is_git_repor   	   s    <<&&((r   c                   V ^8  d   QhRR/# )r   r   r   r	   )r
   s   "r   r   r      s      $ r   c                      \         P                  ! RR.4       R#   \         P                   d     R# \         d     R# i ; i)zCan we run the git executable?gitz--helpTF)
subprocesscheck_outputCalledProcessErrorOSErrorr	   r   r   have_gitr      s@     12((  s    AAAAc                    V ^8  d   QhRRRR/# )r   r   r   r   strr	   )r
   s   "r   r   r      s     m md ms mr   c                p    \         P                  ! . ROV R7      P                  R4      P                  4       # )z.Get the SHA-1 of the HEAD of a git repository.)cwdzutf-8)r   z	rev-parsez--shortHEAD)r   r   decodestripr   s   &r   git_revisionr"      s,    ""#JPST[[\cdjjllr   )	__doc__
__future__r   r   pathlibr   r   r   r"   r	   r   r   <module>r&      s!    p "  )
mr   