I-Git 2.35 ifika inezinto ezintsha, ukulungiswa kwebug, kunye nokunye

Emva kweenyanga ezimbini zophuhliso ukukhutshwa kwenguqulelo entsha yeGit 2.35 yabhengezwa ukuba xa kuthelekiswa nenguqulo yangaphambili, utshintsho lwe-494 lwamkelwa kwinguqulelo entsha, elungiselelwe ngokuthatha inxaxheba kwabaphuhlisi be-93, apho i-35 ithathe inxaxheba ekuphuhliseni okokuqala.

Ngokubhekiselele kwizinto ezintsha ezibalaseleyo eziphuma kule nguqulo entsha, sinokuyifumana Iinketho ezondisiweyo zokusebenzisa izitshixo ze-SSH ukusayina izinto ze-Git ngokwamanani.

Ukwahlula ixesha lokuqinisekisa izitshixo ezahlukeneyo, yongezwe inkxaso ye-OpenSSH "esemthethweni-ngaphambili" kunye ne "isemthethweni-emva" imiyalelo, enokusetyenziswa ukuqinisekisa umsebenzi ochanekileyo kunye neesignesha.

Ngaphambi koko, bekukho ingxaki ngokuhlukana kweesignesha kunye nesitshixo esidala kunye nesitsha: ukuba ucima isitshixo esidala, akunakwenzeka ukuba uqinisekise iisignesha ezenziwe kunye nayo, kwaye ukuba uyishiya, uya kusala. iyakwazi ukwenza utyikityo olutsha ngeqhosha elidala, esele lifakwe endaweni yelinye iqhosha. Ngokusebenza ngaphambi nangemva kokusebenza, unokwahlula umda wamaqhosha ngokusekelwe xa utyikityo lwenziwe.

Olunye utshintsho olubalaseleyo kolu guqulelo lutsha lweGit 2.35 luseto lwe-merge.conflictStyle, que Ikuvumela ukuba ukhethe indlela yokubonisa ulwazi malunga neengxabano ngexesha lokudibanisa, ngoku ixhasa "zdiff3" indlela, ehambisa lonke uhlobo lweentambo ezichazwe ekuqaleni okanye ekupheleni kongquzulwano ngaphandle kwendawo yongquzulwano, ivumela unikezelo oluthe kratya lolwazi.

Imowudi eyongeziweyo «– ebekwe»Kumyalelo we«git stash«, que ivumela ukufihla kuphela utshintsho olongeziweyo kwisalathiso, umzekelo, kwiimeko apho kufuneka uhlehlise okwethutyana utshintsho oluntsonkothileyo ukongeza into esele ilungile kuqala, kunye nokunye ukusombulula emva kwexeshana. Imowudi iyafana nomyalelo "git ukuzibophelela", ukubhala kuphela utshintsho olubekwe kwisalathiso, kodwa endaweni yokwenza isithembiso esitsha kwi "git stash --ibekwe«, isiphumo sigcinwe kwindawo yesikhashana ye-stash. Nje ukuba utshintsho luyimfuneko, lunokubuyiselwa ngomyalelo othi "git stash pop".

Kwelinye icala singayifumana loo nto yongeza isicacisi sefomati entsha «--format=%(chaza)»Kumyalelo we«gitlog", ethi ivumela imveliso ye "git log" ukuba itshatise imveliso yomyalelo "wegit ukuchaza".

Iinketho ze "git explain" zicaciswe ngokuthe ngqo ngaphakathi kumxeli ("-format=%(describe:match= ,ngaphandle= )")), ezinokuquka iithegi ezimfutshane ("–format=% (chaza:tags= )») kwaye ulungelelanisa inani loonobumba be-hexadecimal ukuchonga izinto.

Umzekelo, ukubonisa i-8 eyona misebenzi yamva nje enethegi ezingenayo ithegi yomgqatswa kwaye ukhankanye izichongi zamagama ali-13, ungasebenzisa umyalelo:

Kuye kwenziwa umsebenzi wokulinganisa ukusetyenziswa kohlobo "size_t" endaweni "yexesha elide elingabhalwanga" kumaxabiso amele ubungakanani bezinto, ezivumela ukuba izihluzi "ezihlambulukileyo" kunye ne "smudge" zisetyenziswe kunye neefayile ezinkulu kune-4 GB. kuzo zonke iiplatifomu, kubandakanywa iiplatifomu ezinemodeli yedatha ye-LLP64, thayipha "ixesha elide elingabhalwanga", elilinganiselwe kwi-4 bytes.

Ye- Olunye utshintsho olwahlukileyo yenguqulo entsha:

  • Kongezwe ukuphunyezwa kokuqala kwe-backend entsha «enokuphinda isebenze»ukugcina iimbekiselo ezifana namasebe kunye neethegi kwindawo yokugcina.
  • Iphalethi yombala yomyalelo «git grep»itshintshiwe ukuze itshatise into eluncedo ye-GNU grep.
  • Umyalelo "git sparse-checkout init» irhoxisiwe kwaye kufuneka isetyenziswe endaweniiseti yokuphuma ye-git sparse«.
  • Ukongezwa kokhetho “-engenanto=(yima|yilahla|gcina)»ngomyalelo "ndim", evumela, xa ukhangela iipetshi ezivela kwibhokisi yeposi, ukukhetha ukuziphatha kwemiyalezo engenanto engaqulathanga iipetshi.
  • Inkxaso eyongeziweyo yee-indices ezimbalwa ukuya git reset, git diff, git reproach, git fetch, git pull, kunye negit ls-files»ukuphucula ukusebenza kunye nokugcina indawo kwiindawo zokugcina, apho imisebenzi ye-cloning (i-sparse-checkout) yenziwa.

Gqibela ukuba unomdla wokwazi okungakumbi ngayo malunga nolu guqulelo olutsha lwe-Git 2.35 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.