yL i@ dZddgZddlmZmZddlmZmZddlm Z ddl m Z m Z ddl mZdd lmZdd lmZerdd lmZGd deZy )zCModule with our own gitdb implementation - it uses the git command.GitCmdObjectDBGitDB)OInfoOStream)r LooseObjectDB) BadObject) bin_to_hex hex_to_bin)GitCommandError) TYPE_CHECKING)PathLike)Gitc`eZdZdZdeddddffd Zdedefd Zdede fd Z d e defd Z xZ S) rzA database representing the default git object store, which includes loose objects, pack files and an alternates file. It will create objects only in the loose object database. root_pathgitrreturnNc2t||||_y)z9Initialize this instance with the root and a git command.N)super__init___git)selfrr __class__s L/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/git/db.pyrzGitCmdObjectDB.__init__"s # binshac~|jjt|\}}}tt |||S)z+Get a git object header (using git itself).)rget_object_headerr rr )rrhexshatypenamesizes rinfozGitCmdObjectDB.info's6!%!'R $FIuf% %, 3N+ 2 3s),A  AA )__name__ __module__ __qualname____doc__r rbytesrr!rr$strr+ __classcell__)rs@rrrs^ (4 959U9 CUCwC3#3%3rN)r/__all__ gitdb.baserrgitdb.dbrr gitdb.excrgit.utilr r git.excr typingr git.typesr git.cmdrrrrr=s>J W %%)+#! )3])3r