idp vddlmZmZmZddlmZddlmZddlm Z ddl m Z ddl Z dZ Gdd eeeZdS) ) CompoundDB ObjectDBW FileDBBase) LooseObjectDB)PackedDB) ReferenceDB) InvalidDBRootN)GitDBceZdZdZeZeZeZ dZ dZ e j ddZfdZfdZdZd Zd ZxZS) r aA git-style object database, which contains all objects in the 'objects' subdirectory ``IMPORTANT``: The usage of this implementation is highly discouraged as it fails to release file-handles. This can be a problem with long-running processes and/or big repositories. packinfo alternatescJt|dS)z/Initialize ourselves on a git objects directoryN)super__init__)self root_path __class__s A/opt/cloudlinux/venv/lib/python3.11/site-packages/gitdb/db/git.pyrzGitDB.__init__(s! #####c&|dks|dkrt|_d}|j|jf|j|jf|j|jffD]r\}}||}tj |r9|j ||||jur |jd}s|js!t|||_dSt!|dS)N_dbs _loose_db)listr packs_dir PackDBCls loose_dir LooseDBClsalternates_dirReferenceDBClsdb_pathospathexistsappendr rrr _set_cache_)rattrloose_dbsubpathdbclsr%rs rr(zGitDB._set_cache_,s 6>>T[00DIH$(NDN#C$(NDO#D$($79L#M#O 1 1||G,,7>>$''1I$$UU4[[111//#'9R= 9 6#DNN$4$4555&DNNN GG   % % % % %rc6|j|SN)rstore)ristreams rr/z GitDB.storeLs~##G,,,rc4|jSr.)rostream)rs rr2z GitDB.ostreamOs~%%'''rc6|j|Sr.)r set_ostream)rr2s rr4zGitDB.set_ostreamRs~))'222r)__name__ __module__ __qualname____doc__rrrr rr"rrr$r%joinr!rr(r/r2r4 __classcell__)rs@rr r sIJ NIIW\\&,77N$$$$$&&&&&@---(((3333333rr ) gitdb.db.baserrrgitdb.db.looser gitdb.db.packr gitdb.db.refr gitdb.excr r$__all__r rrrBs  )(((((""""""$$$$$$###### =3=3=3=3=3J :=3=3=3=3=3r