
    )`i                     J    d Z 	 ddlZddlmZ ddlmZ ddee         defdZdS )	a3  
Copyright (c) 2025 by FlashInfer team.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
    N)Path)Optionalcwdreturnc                     	 t          j        g d| t           j                                      d                                          }|S # t
          $ r Y dS w xY w)z
    Get git commit hash.

    Args:
        cwd: Working directory for git command. If None, uses current directory.

    Returns:
        Git commit hash or "unknown" if git is not available.
    )gitz	rev-parseHEAD)r   stderrasciiunknown)
subprocesscheck_outputDEVNULLdecodestrip	Exception)r   git_versions     o/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/flashinfer/data/build_utils.pyget_git_versionr      ss    #,,,!)  
 VG__UWW 	    yys   A	A 
AA)N)__doc__r   pathlibr   typingr   strr        r   <module>r      sy      6                 $ 3      r   