Tokollo ea taolo ea mohloli oa Git 2.52

Ka mor'a likhoeli tse tharo tsa nts'etsopele, Git 2.52, tsamaiso ea tsamaiso ea mohloli oa mohloli, e lokollotsoe. Git e ithorisa ka ts'ebetso e phahameng mme e fana ka bokhoni ba nts'etsopele bo sa lekanyetsoang bo ipapisitseng le makala le ho kopanya. Ho netefatsa bots'epehi ba nalane le ho tiea liphetohong tsa morao-rao, e sebelisa hashing e hlakileng ea nalane eohle e fetileng boitlamo bo bong le bo bong, hammoho le li-signature tsa dijithale tsa li-tag le boitlamo. Git e na le laesense tlasa laesense ea GPLv2+.

Ha ho bapisoa le tokollo e fetileng, mofuta o mocha o kenyelletsa liphetoho tse 637, tse kentsoeng ke bahlahisi ba 94 (bao ba 33 ba bona ba neng ba le ncha ntlafatsong ea Git). Likarolo tse ncha tsa bohlokoa (1, 2, 3):

  • E kentse taelo ea "git last-modified" ho bonts'a lenane la lifaele tlhahlobisong e boletsoeng le boitlamo bo ileng ba qetella bo fetotse faele ka 'ngoe. $ git e fetotsoeng ho qetela HEAD b56f6dcd7b4c90192018e848d0810f091d092913 test.h 29330ae4b820147c98e723399e9438c8bee60a8a test1. 573ad8917beb99dc643b6e7f5c117a294384a575 test2.c
  • E kentse taelo ea "git repo" bakeng sa ho etsa liketso tse amanang le ho khutlisa tlhahisoleseling sebakeng sa polokelo. Ho fanoe ka litaelo tse peli tse nyane, "git repo info" le "git repo structure", tse bonts'ang tlhahisoleseling mabapi le litlhophiso tsa polokelo le lintlha tse mabapi le sebopeho sa polokelo (mohlala, o ka fumana palo ea litšupiso le lintho tse polokelong). $ git repo info object.format references.format object.format=sha1 references.format=reftable $ git repo structure | Sebopeho sa polokelo | Boleng | | ———————— | —— | | * Litšupiso | | | * Palo | 1983 | | * Makala | 4 | | * Lipapali | 1125 | | * Remote | 854 | | * Tse ling | 0 | | | | | * Lintho tse ka fihlellehang | | | * Palo | 518955 | | * Boitlamo | 77469 | | * Lifate | 188865 | | * Liboko | 251631 | | * Lipapali | 990 |
  • Taelo ea git refs e nchafalitsoe ka li-subcommand tse tharo tse kopanyang ts'ebetso ea maemo a tlase a fapaneng le a holimo ho litšupiso (git for-each-ref, git show-ref, git update-ref, le git pack-refs):
    • "git refs optimize" - ntlafatso ea sebaka sa polokelo ea litšupiso (e ts'oanang le "git pack-refs").
    • "git refs list" - e bonts'a lethathamo la litšupiso tsohle (tse ts'oanang le "git for-each-ref" kapa "git show-ref").
    • "git refs e teng" - e lekola boteng ba referense (e ts'oanang le "git show-ref --exists").
  • Sebopeho sa nalane ea boitlamo ea ho romela kantle ho naha e atolositsoe ho ts'ehetsa li-signature tsa cryptographic ho sebelisoa li-identifiers tsa lintho tse thehiloeng ho SHA-1 le SHA-256. Taelo ea "git fast-import" joale e ts'ehetsa ho sebetsana le li-tag tse saennoeng tse ts'oanang le tse saennoeng. Likhetho tsa "--signed-commits=<mode>" le "--signed-tags=<mode>" li kentsoe ho laola ts'ebetso ea li-commit le li-tag tse saennoeng nakong ea ho kenya thepa (mokhoa e ka ba lentsoe le le leng, larn-verbatim, warn-stri, strip, or abort).
  • Taelo ea "git maintenance" joale e tšehetsa leano le lecha la "geometric" ("git config set maintenance.strategy geometric"), e leng ho fokotsa nako ea tlhokomelo bakeng sa li-monorepositories tse kholo. Ha ho bapisoa le leano le neng le le teng pele, le sebelisitseng mohopolo o ts'oanang le "git gc," leano le lecha le qoba ho bokella lintho tsohle hape le ho felisa ts'ebetso e matla ea lisebelisoa joalo ka ho kopanya lipakete tsohle (moo ho khonehang, ho kopanya ho etsoa ka likarolo ntle le ho hloekisa lintho tse tlositsoeng).
  • E kentse taelo ea 'git sparse-checkout clean' ho etsa hore ho be bonolo ho khutlisetsa sebaka sa ho sebetsa ka ho tlosa lifaele tse sa lumellaneng le tlhaloso e ncha ea sparse-checkout le tse sa lokelang ho ba teng kopi ea lehae ho latela litlhophiso tsa hona joale tsa sparse-checkout.
  • Ho tlosa ho rarahana ho tloha ho codebase le ho nolofatsa tlhokomelo, ho ile ha etsoa refactoring ho fokotsa tšebeliso ea global variable the_repository.
  • Tšebeliso ea li-filters tsa Bloom, moralo o ka khonehang oa ho hlahloba litho tse behiloeng tse lumellang lintlha tse fosahetseng tsa likarolo tse sieo empa li thibela ho siuoa ha likarolo tse teng, li ekelitsoe. Li-filters tsa Bloom li se li sebelisetsoa ho potlakisa lipatlisiso nalaneng ea phetoho ha ho hlakisoa likarete tse hlaha litseleng tsa lifaele, mohlala, "foo/bar/*/baz."
  • Ts'ebetso ea taelo ea "git explain" e ekelitsoe ho fihla ho 30% ka lebaka la ts'ebeliso ea letoto la pele. Ts'ebetso ea ho reha lebitso la "git remote rename" e potlakisitsoe. Tšebeliso ea li-index e ekelitsoe ho "git ls-files." Taelo ea "git log -L" e potlakisitsoe haholo ka ho tlosa papiso e sa hlokahaleng ea maemo a mararo ha ho sebetsa ho kopanya. Lintlafatso li entsoe laebraring ea xdiff.
  • Ho se ho tsebisitsoe ts'ebetsong ea boikhethelo ea Rust ea mesebetsi e meng ea ka hare, joalo ka khouto le ho etsa decoding ea bolelele bo fapaneng, e se e kentsoe. Rust code ha e sebelisoe kamehla 'me e hloka hore folakha ea mohaho oa WITH_RUST e lumelloe. Nakong e tlang, likarolo tsa bohlokoa tsa ka hare tsa Git li lebelletsoe ho ngoloa bocha ho Rust, 'me Rust e tla eketsoa joalo ka ts'epo e hlokahalang ea ho haha ​​​​ho Git 3.0.
  • Lenane la liphetoho tse robehileng tse tla sebelisoa lekaleng la Git 3.0 le ntlafalitsoe. Ho Git 3.0, setlama sa init.defaultBranch se tla fetoleloa ho "main," ho bolelang hore lekala la kamehla la polokelo le entsoeng ka taelo ea "git init" le tla bitsoa "main" sebakeng sa "master." Phetoho ho li-identifiers tsa lintho tse thehiloeng ho SHA-256 ha ho qala lipolokelo tse ncha ho boetse ho hlokomeloa. Ho nolofatsa ts'ebetso lipakeng tsa polokelo ka li-identifiers tsa ntho tse thehiloeng ho SHA-1 le SHA-256, bokhoni ba ho sutumelletsa ho tloha polokelong ho sebelisa algorithm e le 'ngoe ea hashing le polokelo e sebelisang algorithm e fapaneng ea hashing e se e fumaneha.

Source: opennet.ru

Reka sebaka se tšepahalang sa libaka tse nang le ts'ireletso ea DDoS, li-server tsa VPS VDS 🔥 Reka sebaka se tšepahalang sa ho amohela webosaete ka tšireletso ea DDoS, li-server tsa VPS VDS | ProHoster