[{"data":1,"prerenderedAt":1387},["ShallowReactive",2],{"/blog/contributions-to-git-2-42-release":3,"navigation-en-us":642,"banner-en-us":1079,"footer-en-us":1087,"blog-post-authors-en-us-Christian Couder":1334,"blog-related-posts-en-us-contributions-to-git-2-42-release":1349,"blog-share-wrapper-en-us":1367,"next-steps-en-us":1377},{"id":4,"title":5,"authors":6,"body":8,"category":619,"date":620,"description":621,"extension":622,"externalUrl":623,"faq":623,"featured":624,"heroImage":625,"hidePromo":624,"meta":626,"navigation":627,"path":628,"seo":629,"slug":633,"stem":634,"tags":635,"template":640,"updatedDate":623,"__hash__":641},"blogPosts/en-us/blog/contributions-to-git-2-42-release.md","Git 2.42 release: Here are four of our contributions in detail",[7],"Christian Couder",{"type":9,"value":10,"toc":595},"minimark",[11,21,30,35,40,55,58,62,65,68,71,75,90,99,105,119,125,131,147,155,165,197,206,213,217,220,242,251,266,270,276,332,347,354,358,364,367,399,402,406,421,433,444,451,455,458,469,472,483,500,506,511,514,532,535,539,542,555,561,565,568,583,591],[12,13,14,20],"p",{},[15,16,19],"a",{"href":17,"rel":18},"https://gitlab.com/gitlab-org/git/-/raw/master/Documentation/RelNotes/2.42.0.txt",[],"Git 2.42","\nwas officially released on August 21, 2023, and included some\nimprovements from GitLab's Git team. Git is the foundation of\nrepository data at GitLab. GitLab's Git team works on new features, performance improvements, documentation improvements,\nand growing the Git community. Often our contributions to Git have a\nlot to do with the way we integrate Git into our services at\nGitLab.",[12,22,23,24,29],{},"We previously shared ",[15,25,28],{"href":26,"rel":27},"https://about.gitlab.com/blog/contributions-to-latest-git-release/",[],"some of our improvements that were included in the Git 2.41 release",". Here are some highlights from the Git 2.42 release, and a\nwindow into how we use Git on the server side at GitLab.",[31,32,34],"h2",{"id":33},"_1-prevent-certain-refs-from-being-packed","1. Prevent certain refs from being packed",[36,37,39],"h3",{"id":38},"write-ahead-logging","Write-ahead logging",[12,41,42,43,48,49,54],{},"In ",[15,44,47],{"href":45,"rel":46},"https://docs.gitlab.com/administration/gitaly/",[],"Gitaly",", we\nwant to use a ",[15,50,53],{"href":51,"rel":52},"https://gitlab.com/groups/gitlab-org/-/epics/8911",[],"write-ahead log","\nto replicate Git operations on different machines.",[12,56,57],{},"This means that the Git objects and references that should be changed\nby a Git operation are first kept in a log entry. Then, when all the\nmachines have agreed that the operation should proceed, the log entry\nis applied so the corresponding Git objects and references are\nactually added to the repositories on all the machines.",[36,59,61],{"id":60},"need-for-temporary-references","Need for temporary references",[12,63,64],{},"Between the time when a specific log entry is first written and when\nit is applied, other log entries could be applied which could remove\nsome objects and references. It could happen that these objects and\nreferences are needed to apply the specific log entry though.",[12,66,67],{},"So when we log an entry, we have to make sure that all the objects and\nreferences that it needs to be properly applied will not be removed\nuntil that entry is either actually applied or discarded.",[12,69,70],{},"The best way to make sure things are kept in Git is to create new Git\nreferences pointing to these things. So we decided to use temporary\nreferences for that purpose. They would be created when a log entry is\nwritten, and then deleted when that entry is either applied or\ndiscarded.",[36,72,74],{"id":73},"packed-refs-performance","Packed-refs performance",[12,76,77,78,82,83,86,87,89],{},"Git can store references in \"loose\" files, with one reference per\nfile, or in the ",[79,80,81],"code",{},"packed-refs"," file, which contains many of them. The\n",[79,84,85],{},"git pack-refs"," command is used to pack some references from \"loose\"\nfiles into the ",[79,88,81],{}," file.",[12,91,92,93,95,96,98],{},"For reading a lot of references, the ",[79,94,81],{}," file is very\nefficient, but for writing or deleting a single reference, it is not\nso efficient as rewriting the whole ",[79,97,81],{}," file is required.",[12,100,101,102,104],{},"As temporary references are to be created and then deleted soon after,\nstoring them in the ",[79,103,81],{}," file would not be efficient. It\nwould be better to store them in \"loose\" files.",[12,106,107,108,110,111,114,115,118],{},"The ",[79,109,85],{}," command had no way to be told precisely which refs\nshould be packed or not though. By default it would repack all the\ntags (which are refs in ",[79,112,113],{},"refs/tags/",") and all the refs that are\nalready packed. With the ",[79,116,117],{},"--all"," option one could tell it to repack\nall the refs except the hidden refs, broken refs, and symbolic refs,\nbut that was the only thing that could be controlled.",[36,120,122,123],{"id":121},"improving-git-pack-refs","Improving ",[79,124,85],{},[12,126,127,128,130],{},"We decided to improve ",[79,129,85],{}," by adding two new options to it:",[132,133,134,141],"ul",{},[135,136,137,140],"li",{},[79,138,139],{},"--include \u003Cpattern>"," which can be used to specify which refs should be packed",[135,142,143,146],{},[79,144,145],{},"--exclude \u003Cpattern>"," which can be used to specify which refs should not be packed",[12,148,149,154],{},[15,150,153],{"href":151,"rel":152},"https://gitlab.com/jcaigitlab",[],"John Cai",", Gitaly:Git team engineering manager, implemented these options.",[12,156,157,158,161,162,164],{},"For example, if the refs managed by the write-ahead log are in\n",[79,159,160],{},"refs/wal/",", it's now possible the exclude them from being moved into\nthe ",[79,163,81],{}," file by using:",[166,167,172],"pre",{"className":168,"code":169,"language":170,"meta":171,"style":171},"language-shell shiki shiki-themes github-light","$ git pack-refs --exclude \"refs/wal/*\"\n","shell","",[79,173,174],{"__ignoreMap":171},[175,176,179,183,187,190,194],"span",{"class":177,"line":178},"line",1,[175,180,182],{"class":181},"s7eDp","$",[175,184,186],{"class":185},"sYBdl"," git",[175,188,189],{"class":185}," pack-refs",[175,191,193],{"class":192},"sYu0t"," --exclude",[175,195,196],{"class":185}," \"refs/wal/*\"\n",[12,198,199,200,205],{},"Details of the patch series, including discussions, can be found\n",[15,201,204],{"href":202,"rel":203},"https://lore.kernel.org/git/pull.1501.git.git.1683215331910.gitgitgadget@gmail.com/",[],"here",".",[31,207,209,210],{"id":208},"_2-get-machine-readable-output-from-git-cat-file-batch","2. Get machine-readable output from ",[79,211,212],{},"git cat-file --batch",[36,214,216],{"id":215},"efficiently-retrieving-git-object-information","Efficiently retrieving Git object information",[12,218,219],{},"In GitLab, we often retrieve Git object information. For example, when a\nuser navigates into the files and directories in a repository, we need\nto get the content of the corresponding Git blobs and trees so that\nwe can show it.",[12,221,222,223,226,227,229,230,233,234,237,238,241],{},"In Gitaly, we use ",[79,224,225],{},"git cat-file"," to retrieve Git object information\nfrom a Git repository. As it's a frequent operation, it needs to be\nperformed efficiently, so we use the batch modes of ",[79,228,225],{},"\navailable through the ",[79,231,232],{},"--batch",", ",[79,235,236],{},"--batch-check"," and ",[79,239,240],{},"--batch-command","\noptions.",[12,243,244,245,247,248,250],{},"In these modes, a pointer to a Git object can be repeatedly sent to\nthe standard input, called 'stdin', of a ",[79,246,225],{}," command, while\nthe corresponding object information is read from the standard ouput,\ncalled 'stdout' of the command. This way we don't need to launch a\nnew ",[79,249,225],{}," command for each object.",[12,252,253,254,257,258,261,262,265],{},"GitLab can keep, for example, a ",[79,255,256],{},"git cat-file --batch-command"," process\nrunning in the background while feeding it commands like\n",[79,259,260],{},"info \u003Cobject>"," or ",[79,263,264],{},"contents \u003Cobject>"," through its stdin to\nget either information about an object or its content.",[36,267,269],{"id":268},"newlines-in-stdin-stdout-and-filenames","Newlines in stdin, stdout, and filenames",[12,271,272,273,275],{},"The commands or pointers to Git objects that are sent through stdin\nshould be delimited using newline characters, and in the same way ",[79,274,225],{}," will use newline characters to delimit the information from\ndifferent Git objects in its output. This is a common shell practice\nto make it easy to chain commands together. For example, one can\neasily get the size (in bytes) of the last three commits on the current\nbranch using the following:",[166,277,279],{"className":168,"code":278,"language":170,"meta":171,"style":171},"$ git log -3 --format='%H' | git cat-file --batch-check='%(objectsize)'\n285\n646\n428\n",[79,280,281,314,320,326],{"__ignoreMap":171},[175,282,283,285,287,290,293,296,299,303,305,308,311],{"class":177,"line":178},[175,284,182],{"class":181},[175,286,186],{"class":185},[175,288,289],{"class":185}," log",[175,291,292],{"class":192}," -3",[175,294,295],{"class":192}," --format=",[175,297,298],{"class":185},"'%H'",[175,300,302],{"class":301},"sD7c4"," |",[175,304,186],{"class":181},[175,306,307],{"class":185}," cat-file",[175,309,310],{"class":192}," --batch-check=",[175,312,313],{"class":185},"'%(objectsize)'\n",[175,315,317],{"class":177,"line":316},2,[175,318,319],{"class":181},"285\n",[175,321,323],{"class":177,"line":322},3,[175,324,325],{"class":181},"646\n",[175,327,329],{"class":177,"line":328},4,[175,330,331],{"class":181},"428\n",[12,333,334,335,338,339,342,343,346],{},"Sometimes, though, the pointer to a Git object can contain a filename\nor a directory name, as such a pointer is allowed to be in the form\n",[79,336,337],{},"\u003Cbranch>:\u003Cpath>",". For example ",[79,340,341],{},"HEAD:Documentation"," is a valid\npointer to the blob or the tree corresponding to the ",[79,344,345],{},"Documentation","\npath on the current branch.",[12,348,349,350,353],{},"This used to be an issue because on some systems newline characters\nare allowed in file or directory names. So the ",[79,351,352],{},"-z"," option was\nintroduced last year in Git 2.38 to allow users to change the input\ndelimiter in batch modes to the NUL character.",[36,355,357],{"id":356},"error-output","Error output",[12,359,360,361,363],{},"When the ",[79,362,352],{}," option was introduced, it wasn't considered useful to\nchange the output delimiter to be also the NUL character. This is\nbecause only tree objects can contain paths and the internal format\nof tree objects already uses NUL characters to delimit paths.",[12,365,366],{},"Unfortunately, it was overlooked that in case of an error the pointer\nto the object is displayed in the error message:",[166,368,370],{"className":168,"code":369,"language":170,"meta":171,"style":171},"$ echo 'HEAD:does-not-exist' | git cat-file --batch\nHEAD:does-not-exist missing\n",[79,371,372,391],{"__ignoreMap":171},[175,373,374,376,379,382,384,386,388],{"class":177,"line":178},[175,375,182],{"class":181},[175,377,378],{"class":185}," echo",[175,380,381],{"class":185}," 'HEAD:does-not-exist'",[175,383,302],{"class":301},[175,385,186],{"class":181},[175,387,307],{"class":185},[175,389,390],{"class":192}," --batch\n",[175,392,393,396],{"class":177,"line":316},[175,394,395],{"class":181},"HEAD:does-not-exist",[175,397,398],{"class":185}," missing\n",[12,400,401],{},"As the error messages are printed along with the regular ouput of the\ncommand on stdout, passing in an invalid pointer with a number of\nnewline characters in it could make it very difficult to parse the\noutput.",[36,403,405],{"id":404},"z-comes-to-the-rescue","-Z comes to the rescue",[12,407,408,413,414,417,418,420],{},[15,409,412],{"href":410,"rel":411},"https://gitlab.com/toon",[],"Toon Claes",", Gitaly senior engineer, initially worked on a\npatch to just quote the pointer in the error message, but it was\ndecided in the Git mailing list discussions related to the patch that\nit would be better to just create a new ",[79,415,416],{},"-Z"," option. This option would\nchange both the input and the output delimiter to the NUL character,\nwhile the old ",[79,419,352],{}," option would be deprecated over time.",[12,422,423,424,429,430,432],{},"So ",[15,425,428],{"href":426,"rel":427},"https://gitlab.com/pks-gitlab",[],"Patrick Steinhardt",", Gitaly staff engineer, implemented that new ",[79,431,416],{}," option.",[12,434,199,435,439,440,205],{},[15,436,204],{"href":437,"rel":438},"https://lore.kernel.org/git/20221209150048.2400648-1-toon@iotcl.com/",[],"\nand ",[15,441,204],{"href":442,"rel":443},"https://lore.kernel.org/git/cover.1685710884.git.ps@pks.im/",[],[31,445,447,448],{"id":446},"_3-pass-pseudo-options-to-git-rev-list-stdin","3. Pass pseudo-options to ",[79,449,450],{},"git rev-list --stdin",[36,452,454],{"id":453},"computing-sizes","Computing sizes",[12,456,457],{},"In GitLab, we need to have different ways to compute the size of Git\nrelated content. For example, we need to know:",[132,459,460,463,466],{},[135,461,462],{},"how much disk space a repository is using",[135,464,465],{},"how big a specific Git object is",[135,467,468],{},"how much additional space on a repository is required by a\nspecific set of revisions (and the objects they reference)",[12,470,471],{},"Knowing \"how much disk space a repository is using\" is useful to\nenforce repository-related quotas and is easy to get using regular\nshell and OS features.",[12,473,474,475,478,479,482],{},"Size information about a specific Git object is useful to enforce\nquotas related to maximum file size. It can be obtained using, for\nexample, ",[79,476,477],{},"git cat-file -s \u003Cobject>"," or\n",[79,480,481],{},"echo \u003Cobject> | git cat-file --batch-check='%(objectsize)'","\nas already seen above.",[12,484,485,486,491,492,495,496,499],{},"Computing the space required by a set of revisions is useful, too, as\nforks can share Git content in what we call\n\"",[15,487,490],{"href":488,"rel":489},"https://docs.gitlab.com/development/git_object_deduplication/",[],"pool repositories",",\"\nand we want to discriminate how much content belongs to each forked\nrepository. Fortunately, ",[79,493,494],{},"git rev-list"," has a ",[79,497,498],{},"--disk-usage"," option\nfor this purpose.",[36,501,503,504],{"id":502},"passing-arguments-to-git-rev-list","Passing arguments to ",[79,505,494],{},[12,507,508,510],{},[79,509,494],{}," can take a number of different arguments and has a lot\nof different options. It's a fundamental command to traverse commit\ngraphs, and it should be flexible enough to fulfill a lot of different\nuser needs.",[12,512,513],{},"When repositories grow, they often store a lot of references and a lot\nof files and directories, so there is often the need to pass a big\nnumber of references or paths as arguments to the\ncommand. References and paths can be quite long though.",[12,515,516,517,520,521,524,525,528,529,531],{},"To avoid hitting platform limits related to command line length, long\nago, a ",[79,518,519],{},"--stdin"," mode was added that allowed users to pass revisions\nand paths through stdin, instead of as command line\narguments. However, when that was implemented, it was not considered\nnecessary to allow options or pseudo-options, like ",[79,522,523],{},"--not",",\n",[79,526,527],{},"--glob=...",", or ",[79,530,117],{}," to be passed through stdin.",[12,533,534],{},"This appeared to be a problem for GitLab, as for computing sizes for\nforked repositories we needed some of the pseudo-options, and it would\nhave been intricate and possibly buggy to pass some of them and their\narguments as arguments on the command line while others were passed\nthrough stdin.",[36,536,538],{"id":537},"allowing-pseudo-options","Allowing pseudo-options",[12,540,541],{},"To fix this issue, Patrick Steinhardt implemented a small patch series to\nallow pseudo-options through stdin.",[12,543,544,545,524,547,528,549,551,552,554],{},"With it, in Git 2.42, one can now pass pseudo-options, like ",[79,546,523],{},[79,548,527],{},[79,550,117],{}," through stdin when the ",[79,553,519],{}," mode is used.",[12,556,199,557,205],{},[15,558,204],{"href":559,"rel":560},"https://lore.kernel.org/git/cover.1686744685.git.ps@pks.im/",[],[31,562,564],{"id":563},"_4-code-and-test-improvements","4. Code and test improvements",[12,566,567],{},"While looking at some Git code, we are often tempted to modify nearby\ncode, either to change only its style when the code is ancient and it\nwould look better using Git's current code style, or to refactor it to\nmake it cleaner. This is why we sometimes send small patch series that\ndon't have a real GitLab related purpose.",[12,569,570,571,576,577,582],{},"In Git 2.42, examples of style code improvements we made are the\n",[15,572,575],{"href":573,"rel":574},"https://lore.kernel.org/git/pull.1513.git.git.1684440205.gitgitgadget@gmail.com/",[],"part1","\nand\n",[15,578,581],{"href":579,"rel":580},"https://lore.kernel.org/git/pull.1514.git.git.1684599239.gitgitgadget@gmail.com/",[],"part2","\ntest code modernization patches from John Cai.",[12,584,585,586,590],{},"And ",[15,587,204],{"href":588,"rel":589},"https://lore.kernel.org/git/cover.1684324059.git.ps@pks.im/",[]," is\nan example of a refactoring to cleanup some code by Patrick Steinhardt.",[592,593,594],"style",{},"html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}",{"title":171,"searchDepth":316,"depth":316,"links":596},[597,604,611,618],{"id":33,"depth":316,"text":34,"children":598},[599,600,601,602],{"id":38,"depth":322,"text":39},{"id":60,"depth":322,"text":61},{"id":73,"depth":322,"text":74},{"id":121,"depth":322,"text":603},"Improving git pack-refs",{"id":208,"depth":316,"text":605,"children":606},"2. Get machine-readable output from git cat-file --batch",[607,608,609,610],{"id":215,"depth":322,"text":216},{"id":268,"depth":322,"text":269},{"id":356,"depth":322,"text":357},{"id":404,"depth":322,"text":405},{"id":446,"depth":316,"text":612,"children":613},"3. Pass pseudo-options to git rev-list --stdin",[614,615,617],{"id":453,"depth":322,"text":454},{"id":502,"depth":322,"text":616},"Passing arguments to git rev-list",{"id":537,"depth":322,"text":538},{"id":563,"depth":316,"text":564},"product","2023-10-12","Find out how GitLab's Git team helped improve Git 2.42.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749667792/Blog/Hero%20Images/git-241.jpg",{},true,"/en-us/blog/contributions-to-git-2-42-release",{"title":5,"description":621,"ogTitle":5,"ogDescription":621,"noIndex":624,"ogImage":625,"ogUrl":630,"ogSiteName":631,"ogType":632,"canonicalUrls":630},"https://about.gitlab.com/blog/contributions-to-git-2-42-release","https://about.gitlab.com","article","contributions-to-git-2-42-release","en-us/blog/contributions-to-git-2-42-release",[636,637,638,639],"git","news","open source","community","BlogPost","En2RTaQ-gbdMSwvpESu50PHvEnhBSp5Z7QTuz1jZ7ZY",{"logo":643,"freeTrial":648,"sales":653,"login":658,"items":663,"search":998,"minimal":1030,"duo":1049,"switchNav":1058,"pricingDeployment":1069},{"config":644},{"href":645,"dataGaName":646,"dataGaLocation":647},"/","gitlab logo","header",{"text":649,"config":650},"Get free trial",{"href":651,"dataGaName":652,"dataGaLocation":647},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":654,"config":655},"Request a demo",{"href":656,"dataGaName":657,"dataGaLocation":647},"/request-a-demo/","sales",{"text":659,"config":660},"Sign in",{"href":661,"dataGaName":662,"dataGaLocation":647},"https://gitlab.com/users/sign_in/","sign in",[664,750,838,843,922,976],{"text":665,"left":627,"config":666,"menu":668},"Platform",{"dataNavLevelOne":667},"platform",{"type":669,"link":670,"columns":674,"feature":739},"lists",{"text":671,"config":672},"Explore the Platform",{"href":673,"dataGaName":667,"dataGaLocation":647},"/platform/",[675,698,721],{"title":676,"items":677},"DevOps",[678,683,688,693],{"text":679,"config":680},"CI/CD",{"href":681,"dataGaLocation":647,"dataGaName":682},"/solutions/continuous-integration/","ci/cd",{"text":684,"config":685},"Source Code Management",{"href":686,"dataGaLocation":647,"dataGaName":687},"/solutions/source-code-management/","source code management",{"text":689,"config":690},"Agile Delivery",{"href":691,"dataGaLocation":647,"dataGaName":692},"/solutions/agile-delivery/","agile delivery",{"text":694,"config":695},"Artifact Management",{"href":696,"dataGaLocation":647,"dataGaName":697},"/artifact-central/","artifact management",{"title":699,"items":700},"Security & Governance",[701,706,711,716],{"text":702,"config":703},"Application Security Testing",{"href":704,"dataGaLocation":647,"dataGaName":705},"/solutions/application-security-testing/","application security testing",{"text":707,"config":708},"Governance & Compliance",{"href":709,"dataGaLocation":647,"dataGaName":710},"/solutions/software-compliance/","governance and compliance",{"text":712,"config":713},"Secrets Management",{"href":714,"dataGaLocation":647,"dataGaName":715},"/gitlab-secrets-manager/","secrets management",{"text":717,"config":718},"Supply Chain Security",{"href":719,"dataGaLocation":647,"dataGaName":720},"/solutions/supply-chain/","supply chain security",{"title":722,"items":723},"Agentic AI & Context",[724,729,734],{"text":725,"config":726},"Duo Agent Platform",{"href":727,"dataGaLocation":647,"dataGaName":728},"/gitlab-duo-agent-platform/","duo agent platform",{"text":730,"config":731},"Orbit Context Graph",{"href":732,"dataGaLocation":647,"dataGaName":733},"/gitlab-orbit/","orbit",{"text":735,"config":736},"Visibility & Measurement",{"href":737,"dataGaLocation":647,"dataGaName":738},"/solutions/visibility-measurement/","visibility and measurement",{"config":740,"title":743,"text":744,"link":745},{"background":741,"textColor":742},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":746,"config":747},"Read the announcement",{"href":748,"dataGaName":749,"dataGaLocation":647},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":751,"left":627,"config":752,"menu":754},"Solutions",{"dataNavLevelOne":753},"solutions",{"type":669,"link":755,"columns":759,"feature":829},{"text":756,"config":757},"View all Solutions",{"href":758,"dataGaName":753,"dataGaLocation":647},"/solutions/",[760,778,796],{"title":761,"items":762},"Outcomes",[763,768,773],{"text":764,"config":765},"DevOps Modernization",{"href":766,"dataGaLocation":647,"dataGaName":767},"/assessments/devops-modernization-assessment/","devops modernization",{"text":769,"config":770},"Security Modernization",{"href":771,"dataGaLocation":647,"dataGaName":772},"/assessments/security-modernization-assessment/","security modernization",{"text":774,"config":775},"AI Modernization",{"href":776,"dataGaLocation":647,"dataGaName":777},"/assessments/ai-modernization-assessment/","ai modernization",{"title":779,"items":780},"By size",[781,786,791],{"text":782,"config":783},"Enterprise",{"href":784,"dataGaLocation":647,"dataGaName":785},"/enterprise/","enterprise",{"text":787,"config":788},"Small Business",{"href":789,"dataGaLocation":647,"dataGaName":790},"/small-business/","small business",{"text":792,"config":793},"Startups",{"href":794,"dataGaLocation":647,"dataGaName":795},"/solutions/startups/","startups",{"title":797,"items":798},"Industries",[799,804,809,814,819,824],{"text":800,"config":801},"Financial Services",{"href":802,"dataGaLocation":647,"dataGaName":803},"/solutions/finance/","financial services",{"text":805,"config":806},"Public Sector",{"href":807,"dataGaLocation":647,"dataGaName":808},"/solutions/public-sector/","public sector",{"text":810,"config":811},"Telecommunications",{"href":812,"dataGaLocation":647,"dataGaName":813},"/solutions/telecommunications/","telecommunications",{"text":815,"config":816},"Automotive",{"href":817,"dataGaLocation":647,"dataGaName":818},"/solutions/automotive/","automotive",{"text":820,"config":821},"Education",{"href":822,"dataGaLocation":647,"dataGaName":823},"/solutions/education/","education",{"text":825,"config":826},"Aerospace",{"href":827,"dataGaLocation":647,"dataGaName":828},"/solutions/aerospace/","aerospace",{"config":830,"title":831,"text":832,"link":833},{"background":741,"textColor":742},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":834,"config":835},"Explore the standard",{"href":836,"dataGaName":837,"dataGaLocation":647},"/gitlab-security-standard/","gitlab security standard",{"text":839,"config":840},"Pricing",{"href":841,"dataGaName":842,"dataGaLocation":647,"dataNavLevelOne":842},"/pricing/","pricing",{"text":844,"config":845,"menu":847},"Resources",{"dataNavLevelOne":846},"resources",{"type":669,"link":848,"columns":852,"feature":913},{"text":849,"config":850},"View all resources",{"href":851,"dataGaName":846,"dataGaLocation":647},"/resources/",[853,886],{"title":854,"items":855},"Discover",[856,861,866,871,876,881],{"text":857,"config":858},"Docs",{"href":859,"dataGaName":860,"dataGaLocation":647},"https://docs.gitlab.com/","docs",{"text":862,"config":863},"University",{"href":864,"dataGaName":865,"dataGaLocation":647},"https://university.gitlab.com/","university",{"text":867,"config":868},"Demo Series",{"href":869,"dataGaName":870,"dataGaLocation":647},"/gitlab-technical-demo-series/","demo series",{"text":872,"config":873},"Demo Hub",{"href":874,"dataGaName":875,"dataGaLocation":647},"/demo-hub/","demo hub",{"text":877,"config":878},"Services",{"href":879,"dataGaName":880,"dataGaLocation":647},"/services/","services",{"text":882,"config":883},"Well Architected",{"href":884,"dataGaName":885,"dataGaLocation":647},"/resources/well-architected/","well architected",{"title":887,"items":888},"Connect",[889,894,898,903,908],{"text":890,"config":891},"Blog",{"href":892,"dataGaName":893,"dataGaLocation":647},"/blog/","blog",{"text":895,"config":896},"Community",{"href":897,"dataGaName":639,"dataGaLocation":647},"/community/",{"text":899,"config":900},"Customers",{"href":901,"dataGaName":902,"dataGaLocation":647},"/customers/","customers",{"text":904,"config":905},"Partners",{"href":906,"dataGaName":907,"dataGaLocation":647},"/partners/","partners",{"text":909,"config":910},"Events",{"href":911,"dataGaName":912,"dataGaLocation":647},"/events/","events",{"config":914,"title":915,"text":916,"link":917},{"background":741,"textColor":742},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":918,"config":919},"Read the latest",{"href":920,"dataGaName":921,"dataGaLocation":647},"/whats-new/","whats new",{"text":923,"config":924,"menu":926},"Company",{"dataNavLevelOne":925},"company",{"type":669,"columns":927},[928],{"items":929},[930,935,941,946,951,956,961,966,971],{"text":931,"config":932},"About",{"href":933,"dataGaName":934,"dataGaLocation":647},"/company/","about",{"text":936,"config":937,"footerGa":940},"Jobs",{"href":938,"dataGaName":939,"dataGaLocation":647},"/jobs/","jobs",{"dataGaName":939},{"text":942,"config":943},"Press",{"href":944,"dataGaName":945,"dataGaLocation":647},"/press/","press",{"text":947,"config":948},"Handbook",{"href":949,"dataGaName":950,"dataGaLocation":647},"https://handbook.gitlab.com/","handbook",{"text":952,"config":953},"Leadership",{"href":954,"dataGaName":955,"dataGaLocation":647},"/company/team/e-group/","leadership",{"text":957,"config":958},"Investor relations",{"href":959,"dataGaName":960,"dataGaLocation":647},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":962,"config":963},"Trust Center",{"href":964,"dataGaName":965,"dataGaLocation":647},"/security/","trust center",{"text":967,"config":968},"AI Transparency Center",{"href":969,"dataGaName":970,"dataGaLocation":647},"/ai-transparency-center/","ai transparency center",{"text":972,"config":973},"Newsletter",{"href":974,"dataGaName":975,"dataGaLocation":647},"/company/contact/#contact-forms","newsletter",{"text":977,"config":978,"menu":979},"Contact us",{"dataNavLevelOne":925},{"type":669,"columns":980},[981],{"items":982},[983,988,993],{"text":984,"config":985},"Talk to sales",{"href":986,"dataGaName":987,"dataGaLocation":647},"/sales/","talk to sales",{"text":989,"config":990},"Support portal",{"href":991,"dataGaName":992,"dataGaLocation":647},"https://support.gitlab.com/hc/en-us","support portal",{"text":994,"config":995},"Customer portal",{"href":996,"dataGaName":997,"dataGaLocation":647},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":999,"login":1000,"suggestions":1007},"Close",{"text":1001,"link":1002},"To search repositories and projects, login to",{"text":1003,"config":1004},"gitlab.com",{"href":661,"dataGaName":1005,"dataGaLocation":1006},"search login","search",{"text":1008,"default":1009},"Suggestions",[1010,1013,1016,1018,1022,1026],{"text":1011,"config":1012},"GitLab Duo Agent Platform",{"href":727,"dataGaName":1011,"dataGaLocation":1006},{"text":1014,"config":1015},"Code Suggestions (AI)",{"href":727,"dataGaName":1014,"dataGaLocation":1006},{"text":679,"config":1017},{"href":681,"dataGaName":679,"dataGaLocation":1006},{"text":1019,"config":1020},"GitLab on AWS",{"href":1021,"dataGaName":1019,"dataGaLocation":1006},"/partners/technology-partners/aws/",{"text":1023,"config":1024},"GitLab on Google Cloud",{"href":1025,"dataGaName":1023,"dataGaLocation":1006},"/partners/technology-partners/google-cloud-platform/",{"text":1027,"config":1028},"Why GitLab?",{"href":1029,"dataGaName":1027,"dataGaLocation":1006},"/why-gitlab/",{"freeTrial":1031,"mobileIcon":1036,"desktopIcon":1041,"secondaryButton":1044},{"text":1032,"config":1033},"Start free trial",{"href":1034,"dataGaName":652,"dataGaLocation":1035},"https://gitlab.com/-/trials/new/","nav",{"altText":1037,"config":1038},"Gitlab Icon",{"src":1039,"dataGaName":1040,"dataGaLocation":1035},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1037,"config":1042},{"src":1043,"dataGaName":1040,"dataGaLocation":1035},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1045,"config":1046},"Get Started",{"href":1047,"dataGaName":1048,"dataGaLocation":1035},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1050,"mobileIcon":1054,"desktopIcon":1056},{"text":1051,"config":1052},"Learn more about GitLab Duo",{"href":727,"dataGaName":1053,"dataGaLocation":1035},"gitlab duo",{"altText":1037,"config":1055},{"src":1039,"dataGaName":1040,"dataGaLocation":1035},{"altText":1037,"config":1057},{"src":1043,"dataGaName":1040,"dataGaLocation":1035},{"button":1059,"mobileIcon":1064,"desktopIcon":1066},{"text":1060,"config":1061},"/switch",{"href":1062,"dataGaName":1063,"dataGaLocation":1035},"#contact","switch",{"altText":1037,"config":1065},{"src":1039,"dataGaName":1040,"dataGaLocation":1035},{"altText":1037,"config":1067},{"src":1068,"dataGaName":1040,"dataGaLocation":1035},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1070,"mobileIcon":1075,"desktopIcon":1077},{"text":1071,"config":1072},"Back to pricing",{"href":841,"dataGaName":1073,"dataGaLocation":1035,"icon":1074},"back to pricing","GoBack",{"altText":1037,"config":1076},{"src":1039,"dataGaName":1040,"dataGaLocation":1035},{"altText":1037,"config":1078},{"src":1043,"dataGaName":1040,"dataGaLocation":1035},{"title":1080,"button":1081,"config":1085},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":746,"config":1082},{"href":748,"dataGaName":1083,"dataGaLocation":1084},"orbit-ga-banner","global-banner",{"layout":1086,"disabled":624},"release",{"data":1088},{"text":1089,"config":1090,"items":1095,"minimal":1323},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1091,"facebook":1092,"youtube":1093,"linkedin":1094},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1096,1144,1203,1250,1291],{"title":839,"links":1097,"subMenu":1113},[1098,1103,1108],{"text":1099,"config":1100},"View plans",{"href":841,"dataGaName":1101,"dataGaLocation":1102},"view plans","footer",{"text":1104,"config":1105},"Why Premium?",{"href":1106,"dataGaName":1107,"dataGaLocation":1102},"/pricing/premium/","why premium",{"text":1109,"config":1110},"Why Ultimate?",{"href":1111,"dataGaName":1112,"dataGaLocation":1102},"/pricing/ultimate/","why ultimate",[1114],{"title":1115,"links":1116},"Contact Us",[1117,1120,1122,1124,1129,1134,1139],{"text":1118,"config":1119},"Contact sales",{"href":986,"dataGaName":657,"dataGaLocation":1102},{"text":989,"config":1121},{"href":991,"dataGaName":992,"dataGaLocation":1102},{"text":994,"config":1123},{"href":996,"dataGaName":997,"dataGaLocation":1102},{"text":1125,"config":1126},"Status",{"href":1127,"dataGaName":1128,"dataGaLocation":1102},"https://status.gitlab.com/","status",{"text":1130,"config":1131},"Terms of use",{"href":1132,"dataGaName":1133,"dataGaLocation":1102},"/terms/","terms of use",{"text":1135,"config":1136},"Privacy statement",{"href":1137,"dataGaName":1138,"dataGaLocation":1102},"/privacy/","privacy statement",{"text":1140,"config":1141},"Cookie preferences",{"dataGaName":1142,"dataGaLocation":1102,"id":1143,"isOneTrustButton":627},"cookie preferences","ot-sdk-btn",{"title":665,"links":1145,"subMenu":1161},[1146,1149,1151,1153,1155,1157],{"text":1147,"config":1148},"Explore the platform",{"href":673,"dataGaName":667,"dataGaLocation":1102},{"text":725,"config":1150},{"href":727,"dataGaName":728,"dataGaLocation":1102},{"text":679,"config":1152},{"href":681,"dataGaName":682,"dataGaLocation":1102},{"text":730,"config":1154},{"href":732,"dataGaName":733,"dataGaLocation":1102},{"text":712,"config":1156},{"href":714,"dataGaName":715,"dataGaLocation":1102},{"text":1158,"config":1159},"Why GitLab",{"href":1029,"dataGaName":1160,"dataGaLocation":1102},"why gitlab",[1162],{"title":1163,"links":1164},"Topics",[1165,1169,1174,1178,1183,1188,1193,1198],{"text":679,"config":1166},{"href":1167,"dataGaName":1168,"dataGaLocation":1102},"/topics/ci-cd/","cicd",{"text":1170,"config":1171},"GitOps",{"href":1172,"dataGaName":1173,"dataGaLocation":1102},"/topics/gitops/","gitops",{"text":676,"config":1175},{"href":1176,"dataGaName":1177,"dataGaLocation":1102},"/topics/devops/","devops",{"text":1179,"config":1180},"Version Control",{"href":1181,"dataGaName":1182,"dataGaLocation":1102},"/topics/version-control/","version control",{"text":1184,"config":1185},"DevSecOps",{"href":1186,"dataGaName":1187,"dataGaLocation":1102},"/topics/devsecops/","devsecops",{"text":1189,"config":1190},"Cloud Native",{"href":1191,"dataGaName":1192,"dataGaLocation":1102},"/topics/cloud-native/","cloud native",{"text":1194,"config":1195},"AI for Coding",{"href":1196,"dataGaName":1197,"dataGaLocation":1102},"/topics/devops/ai-for-coding/","ai for coding",{"text":1199,"config":1200},"Agentic AI",{"href":1201,"dataGaName":1202,"dataGaLocation":1102},"/topics/agentic-ai/","agentic ai",{"title":751,"links":1204},[1205,1208,1211,1214,1217,1220,1222,1224,1226,1228,1230,1233,1235,1238,1242,1246],{"text":1206,"config":1207},"DevOps modernization",{"href":766,"dataGaName":767,"dataGaLocation":1102},{"text":1209,"config":1210},"Security modernization",{"href":771,"dataGaName":772,"dataGaLocation":1102},{"text":1212,"config":1213},"AI modernization",{"href":776,"dataGaName":777,"dataGaLocation":1102},{"text":1215,"config":1216},"Financial services",{"href":802,"dataGaName":803,"dataGaLocation":1102},{"text":1218,"config":1219},"Public sector",{"href":807,"dataGaName":808,"dataGaLocation":1102},{"text":810,"config":1221},{"href":812,"dataGaName":813,"dataGaLocation":1102},{"text":815,"config":1223},{"href":817,"dataGaName":818,"dataGaLocation":1102},{"text":820,"config":1225},{"href":822,"dataGaName":823,"dataGaLocation":1102},{"text":825,"config":1227},{"href":827,"dataGaName":828,"dataGaLocation":1102},{"text":782,"config":1229},{"href":784,"dataGaName":785,"dataGaLocation":1102},{"text":1231,"config":1232},"Small business",{"href":789,"dataGaName":790,"dataGaLocation":1102},{"text":792,"config":1234},{"href":794,"dataGaName":795,"dataGaLocation":1102},{"text":1170,"config":1236},{"href":1237,"dataGaName":1173,"dataGaLocation":1102},"/solutions/gitops/",{"text":1239,"config":1240},"Software composition analysis",{"href":719,"dataGaName":1241,"dataGaLocation":1102},"software composition analysis",{"text":1243,"config":1244},"Value stream management",{"href":737,"dataGaName":1245,"dataGaLocation":1102},"value stream management",{"text":1247,"config":1248},"All solutions",{"href":758,"dataGaName":1249,"dataGaLocation":1102},"all solutions",{"title":844,"links":1251},[1252,1257,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1287],{"text":1253,"config":1254},"Install",{"href":1255,"dataGaName":1256,"dataGaLocation":1102},"/install/","install",{"text":1258,"config":1259},"Quick start guides",{"href":1260,"dataGaName":1261,"dataGaLocation":1102},"/get-started/","quick setup checklists",{"text":857,"config":1263},{"href":859,"dataGaName":860,"dataGaLocation":1102},{"text":862,"config":1265},{"href":864,"dataGaName":865,"dataGaLocation":1102},{"text":867,"config":1267},{"href":869,"dataGaName":870,"dataGaLocation":1102},{"text":872,"config":1269},{"href":874,"dataGaName":875,"dataGaLocation":1102},{"text":877,"config":1271},{"href":879,"dataGaName":880,"dataGaLocation":1102},{"text":890,"config":1273},{"href":892,"dataGaName":893,"dataGaLocation":1102},{"text":895,"config":1275},{"href":897,"dataGaName":639,"dataGaLocation":1102},{"text":899,"config":1277},{"href":901,"dataGaName":902,"dataGaLocation":1102},{"text":904,"config":1279},{"href":906,"dataGaName":907,"dataGaLocation":1102},{"text":909,"config":1281},{"href":911,"dataGaName":912,"dataGaLocation":1102},{"text":972,"config":1283},{"href":974,"dataGaName":975,"dataGaLocation":1102},{"text":1285,"config":1286},"What's new",{"href":920,"dataGaName":921,"dataGaLocation":1102},{"text":1288,"config":1289},"All resources",{"href":851,"dataGaName":1290,"dataGaLocation":1102},"all resources",{"title":923,"links":1292},[1293,1295,1297,1299,1301,1303,1305,1307,1309,1313,1318],{"text":931,"config":1294},{"href":933,"dataGaName":925,"dataGaLocation":1102},{"text":936,"config":1296},{"href":938,"dataGaName":939,"dataGaLocation":1102},{"text":942,"config":1298},{"href":944,"dataGaName":945,"dataGaLocation":1102},{"text":947,"config":1300},{"href":949,"dataGaName":950,"dataGaLocation":1102},{"text":952,"config":1302},{"href":954,"dataGaName":955,"dataGaLocation":1102},{"text":957,"config":1304},{"href":959,"dataGaName":960,"dataGaLocation":1102},{"text":962,"config":1306},{"href":964,"dataGaName":965,"dataGaLocation":1102},{"text":967,"config":1308},{"href":969,"dataGaName":970,"dataGaLocation":1102},{"text":1310,"config":1311},"Sustainability",{"href":1312,"dataGaName":1310,"dataGaLocation":1102},"/sustainability/",{"text":1314,"config":1315},"Diversity, inclusion and belonging (DIB)",{"href":1316,"dataGaName":1317,"dataGaLocation":1102},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1319,"config":1320},"Modern Slavery Transparency Statement",{"href":1321,"dataGaName":1322,"dataGaLocation":1102},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1324},[1325,1328,1331],{"text":1326,"config":1327},"Terms",{"href":1132,"dataGaName":1133,"dataGaLocation":1102},{"text":1329,"config":1330},"Cookies",{"dataGaName":1142,"dataGaLocation":1102,"id":1143,"isOneTrustButton":627},{"text":1332,"config":1333},"Privacy",{"href":1137,"dataGaName":1138,"dataGaLocation":1102},[1335],{"id":1336,"title":7,"body":623,"config":1337,"content":1339,"description":623,"extension":1343,"meta":1344,"navigation":627,"path":1345,"seo":1346,"stem":1347,"__hash__":1348},"blogAuthors/en-us/blog/authors/christian-couder.yml",{"template":1338},"BlogAuthor",{"name":7,"config":1340},{"headshot":1341,"ctfId":1342},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749663687/Blog/Author%20Headshots/chriscool-headshot.jpg","chriscool","yml",{},"/en-us/blog/authors/christian-couder",{},"en-us/blog/authors/christian-couder","6VsKjKNdm1XKAmFMZHj53ROyylDlxaSJhcARRkw6EQQ",[1350,1356,1362],{"title":1351,"description":1352,"heroImage":1353,"category":619,"date":1354,"authors":623,"slug":623,"externalUrl":1355},"GitLab Critical Patch Release: 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13","Read about this critical patch release for Community Edition and Enterprise Edition.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749661926/Blog/Hero%20Images/security-patch-blog-image-r2-0506-700x400-fy25_2x.jpg","2026-10-21","https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-5-1-released/",{"title":1357,"description":1358,"heroImage":1359,"category":619,"date":1360,"authors":623,"slug":623,"externalUrl":1361},"GitLab 19.5 released","This release includes GitLab MCP server and GitLab Secrets Manager as generally available, and new AI governance capabilities.\n","https://res.cloudinary.com/about-gitlab-com/image/upload/v1791993648/t2kod74bclspits5cc5o.png","2026-10-15","https://docs.gitlab.com/releases/19/gitlab-19-5-released/",{"title":1363,"description":1364,"heroImage":1353,"category":619,"date":1365,"authors":623,"slug":623,"externalUrl":1366},"GitLab Critical Patch Release: 19.4.2, 19.3.4, 19.2.8","Learn about this critical patch release for GitLab Community Edition and Enterprise Edition.","2026-10-12","https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/",{"header":1368,"text":1369,"button":1373,"disclaimer":1376},"Start your free\n\n30-day GitLab trial\n",[1370,1371,1372],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":649,"config":1374},{"href":1375,"dataGaName":652,"dataGaLocation":893},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1378,"blurb":1379,"button":1380,"secondaryButton":1385},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1381,"config":1382},"Get your free trial",{"href":1383,"dataGaName":652,"dataGaLocation":1384},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1118,"config":1386},{"href":986,"dataGaName":657,"dataGaLocation":1384},1794911782795]