IGit 2.36 sele ikhutshiwe kwaye ezi ziindaba zayo

Emva kweenyanga ezintathu zophuhliso inguqulelo entsha yenkqubo yakhululwa yolawulo lwekhowudi yemvelaphi esasaziweyo «IGit 2.36»Enye yezona zinto zidumileyo, ezithembekileyo neziphezulu zolawulo lwenkqubo ebonelela ngezixhobo eziguquguqukayo zophuhliso ezingangqameneyo ezisekelwe kwiifolokhwe kunye nokudityaniswa kweefolokhwe.

Ukuqinisekisa imfezeko yembali kunye nokuchasana notshintsho "olusemva", i-hash efihliweyo yayo yonke imbali yangaphambili isetyenziswa kwisibophelelo ngasinye. Kwakhona kuyenzeka ukuba uqinisekise iisignitsha zedijithali zabaphuhlisi beelebhile zomntu ngamnye kunye neziqinisekiso.

Git 2.36 Iimpawu eziphambili zeNqaku elitsha

Xa kuthelekiswa nokukhululwa kwangaphambili, utshintsho lwe-717 lwamkelwe kwinguqu entsha, elungiselelwe ngokuthatha inxaxheba kwabaphuhlisi be-96, apho i-26 ithathe inxaxheba ekuphuhliseni okokuqala. Iinguqulelo eziphambili :

Ikhetho "-remerge-diff" yongezwe kwi "git log" kunye ne "git show" imiyalelo yokubonisa umahluko phakathi kwesiphumo esipheleleyo sokudibanisa kunye nedatha yokwenyani ebonakaliswe kwisibophelelo emva kokucubungula umyalelo "wokudibanisa", okuvumela ukuba uhlole ngokubonakalayo utshintsho olwenziwayo ngenxa yokudibanisa ingxabano. Umyalelo oqhelekileyo othi "git show" wahlula izisombululo zongquzulwano ezahlukeneyo kunye ne-indentation, ukwenza utshintsho lube nzima ukuqonda.

Xa usebenzisa ukhetho "-phinda-phinda-hlukana", iyantlukwano phakathi kwezisombululo zongquzulwano azahlulwanga kwisebe ngalinye labazali, kodwa umahluko phakathi kwefayile edibanisa iingxabano kunye nefayile ezisombulule iingxabano ziyaboniswa.

Olunye utshintsho oluphawulekayo yi ukuguquguquka okuphuculweyo kwindlela yokuziphatha ukusuka ekugungxuleni indawo yokugcina idisk nge fsync () umnxeba womsebenzi. Ipharamitha core.fsyncObjectFiles ekhoyo ngaphambili yahlulwe yaziintlobo ezimbini zoqwalaselo i-core.fsync kunye ne-core.fsyncMethod, ebonelela ngokukwazi ukusebenzisa i-fsync kungekuphela nje kwiifayile ezichaseneyo (.git/objects), kodwa nakwezinye izakhiwo zegit ezifana neerefs ( .git /refs), reflog, kunye neefayile zephakheji.

ngokuguquguquka core.fsync, ungakhankanya uluhlu lwangaphakathi lwezakhiwo zeGit, emva komsebenzi wokubhala, apho i-fsync iyakubizwa yona. Utshintsho undoqo.fsyncMethod ikuvumela ukuba ukhethe indlela yokugungxula i-cache, umzekelo, ungakhetha i-fsync ukusebenzisa inkqubo yokufowuna kwegama elifanayo, okanye ukhankanye bhala-kuphela ukusebenzisa okulindileyo kokubhalwa kwe-lazywriting (i-cache yephepha lazywriting).

Ukukhusela kubuthathaka ephethe ukutshintshwa kwe-.git abalawuli ngabanye abasebenzisi kwizahlulo ekwabelwana ngazo, uqinisekiso lomnini wogcino luqinisiwe. Ngoku ukusebenzisa kuphela nayiphi na imiyalelo ye-git kweyabo ".git" oovimba abavumelekileyo. Ukuba uvimba weefayili womnye umsebenzisi, impazamo iya kwenziwa ngokungagqibekanga. Oku kuziphatha kungayekwa kusetyenziswa isicwangciso esikhuselekileyo sikavimba weefayili.

Kuyacaciswa ukuba yongeza "-batch-command" ukhetho kumyalelo we "git cat-file", ecetyelwe ukuvelisa umxholo wokuqala wezinto zeGit, ezincedisana nemiyalelo "-batch" kunye "-batch-check" ekhoyo ngaphambili ngokukwazi ukukhetha ngokuguquguqukayo uhlobo lwemveliso ngokusebenzisa "umxholo » ukubonisa umxholo okanye «ulwazi »ukubonisa ulwazi malunga nento. Kwakhona, umyalelo othi "gungxula" uyaxhaswa ukugungxula isithinteli semveliso.

Kwelinye icala, kuyacaciswa ukuba yongezwe "-oid-kuphela" ukhetho ("-into-kuphela") kumyalelo we-"git ls-tree", oyilelwe ukudwelisa imixholo yomthi wezinto othi, ngothelekiso "-igama-kuphela", ubonise kuphela izichongi zento ukwenza lula iminxeba evela kwizikripti. I "--format" ukhetho lukwaphunyeziwe, olukuvumela ukuba uchaze ifomati yemveliso yakho ngokudibanisa indlela, uhlobo, igama, kunye nolwazi lobungakanani.

Olunye utshintsho evelele kule nguqulo intsha:

  • Kumyalelo othi "git bisect run", inkcazo yokungacwangciswa kophawu lwefayile ephunyezwayo yeskripthi kunye nokuvelisa iimpazamo ngeekhowudi 126 okanye 127 kule meko iphunyeziwe (ngaphambili, ukuba iskripthi asikwazanga kuphunyezwa, lonke uphononongo lwenziwe. iphawulwe njengenemiba).
  • Kongezwe "-refetch" ukhetho "ku-git fetch" umyalelo wokuthatha zonke izinto ngaphandle kokwazisa elinye icala lomxholo osele ukwinkqubo yendawo. Oku kuziphatha kunokuba luncedo ekubuyiseleni urhulumente emva kokusilela xa kukho ukungaqiniseki malunga nokuthembeka kwedatha yendawo.
  • I "git update-index", "git checkout-index", "git read-tree", kunye ne "git clean" imiyalelo ngoku ixhasa isalathiso esingaphelelanga (sparse index) ukuphucula ukusebenza kunye nokugcina indawo kwiindawo zokugcina ezenza imisebenzi ethile. (intlawulo embi).
  • Ukuziphatha okutshintshileyo komyalelo we "git clone -filter=... -recurse-submodules", nto leyo ngoku ekhokelela kubumbano lwenxalenye yeemodyuli (ngaphambili, xa kusenziwa loo miyalelo, isihluzo sasisetyenziswa kuphela kumxholo ongundoqo kwaye iimodyuli ezisezantsi zahlanganiswa ngokupheleleyo ngaphandle kokuthatha akhawunti isihluzo).
  • Inkxaso eyongeziweyo yokuchaza izihluzi ezikhethiweyo zokubekwa komxholo kumyalelo we "git bundle", efana nokusebenza kweclone.
  • Yongezwe "-recurse-submodules" ukhetho ku "git branch" umyalelo wokuwela iimodyuli ezisezantsi ngokuphindaphindiweyo.
    Umsebenzisi ucebise umqhubi omtsha wolwimi lweKotlin.

Gqibela ukuba unomdla wokwazi okungakumbi ngayo malunga nolu guqulelo olutsha lwe-Git 2.36 ungajongana neenkcukacha kwi eli khonkco lilandelayo.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.