[{"data":1,"prerenderedAt":1993},["ShallowReactive",2],{"/ja-jp/blog/a-beginners-guide-to-the-git-reftable-format":3,"navigation-ja-jp":1253,"banner-ja-jp":1687,"footer-ja-jp":1695,"blog-post-authors-ja-jp-Patrick Steinhardt":1934,"blog-related-posts-ja-jp-a-beginners-guide-to-the-git-reftable-format":1949,"blog-share-wrapper-ja-jp":1974,"next-steps-ja-jp":1984},{"id":4,"title":5,"authors":6,"body":8,"category":1230,"date":1231,"description":1232,"extension":1233,"externalUrl":1234,"faq":1234,"featured":158,"heroImage":1235,"hidePromo":1236,"meta":1237,"navigation":158,"path":1238,"seo":1239,"slug":1243,"stem":1244,"tags":1245,"template":1250,"updatedDate":1251,"__hash__":1252},"blogPosts/ja-jp/blog/a-beginners-guide-to-the-git-reftable-format.md","初心者向けGit reftableフォーマットガイド",[7],"Patrick Steinhardt",{"type":9,"value":10,"toc":1217},"minimark",[11,22,38,41,46,49,52,74,77,85,88,91,254,257,264,435,442,515,518,521,546,553,603,606,620,623,697,703,706,709,726,733,750,753,761,764,770,773,782,785,788,792,799,814,817,841,846,849,852,855,858,869,875,878,881,884,892,895,898,901,919,922,928,934,994,997,1000,1003,1010,1019,1024,1030,1035,1041,1046,1052,1055,1058,1061,1067,1084,1087,1163,1170,1177,1180,1189,1198,1213],[12,13,14,15,21],"p",{},"最近まで、Gitでの参照の保存方法は、「files」フォーマットだけに限られていましたが、",[16,17,20],"a",{"href":18,"rel":19},"https://about.gitlab.com/ja-jp/blog/whats-new-in-git-2-45-0/",[],"Git 2.45.0の新機能","により、Gitでは参照を「reftable」フォーマットで保存できるようになりました。この新しいフォーマットは、バイナリフォーマットで非常に複雑ですが、その複雑さが「files」フォーマットのいくつかの欠点を解決します。「reftable」フォーマットは、次のような目的で設計されました。",[23,24,25,29,32,35],"ul",{},[26,27,28],"li",{},"単一の参照の検索と参照範囲のイテレーションを、可能な限り効率的かつ迅速に行えるようにする。",[26,30,31],{},"複数の参照が部分的にしか更新されていない中途半端な状態をGitが読み取らないように、一貫した参照の読み取りをサポートする。",[26,33,34],{},"複数の参照の更新がオールオアナッシング型のオペレーションとして実行される、アトミック書き込みをサポートする。",[26,36,37],{},"参照および参照ログの効率的な保存。",[12,39,40],{},"この記事では、「reftable」フォーマットの仕組みを詳しく見ていきます。",[42,43,45],"h2",{"id":44},"gitでの参照の保存方法","Gitでの参照の保存方法",[12,47,48],{},"「reftable」フォーマットについて詳しく掘り下げる前に、まずはGitがこれまで参照をどのように保存してきたのかを簡単に振り返ってみましょう。すでにご存知の方は、このセクションを読み飛ばして構いません。",[12,50,51],{},"Gitリポジトリは、次の重要な2つのデータ構造を追跡します。",[23,53,54,62],{},[26,55,56,61],{},[16,57,60],{"href":58,"rel":59},"https://git-scm.com/book/en/v2/Git-Internals-Git-Objects",[],"オブジェクト","：リポジトリの実際のデータ（コミット、ディレクトリツリー構造、ソースコードを含むblobなど）を格納しています。オブジェクトは互いに参照し合い、オブジェクトグラフを形成します。さらに、各オブジェクトにはオブジェクトIDがあり、そのオブジェクトを一意に識別します。",[26,63,64,65,69,70,73],{},"参照：ブランチやタグなどがあります。これらはオブジェクトグラフへのポインタであり、オブジェクトに覚えやすい名前を付けたり、開発履歴の異なるトラックを追跡するのに使われます。たとえば、リポジトリには",[66,67,68],"code",{},"main","ブランチが含まれている場合があり、これは特定のコミットを指し示す",[66,71,72],{},"refs/heads/main","という名前の参照です。",[12,75,76],{},"参照は、参照データベースに保存されます。Git 2.45.0までは、「files」データベースフォーマットのみが存在していました。このフォーマットでは、各参照が通常のファイルとして保存され、そのファイルには次のいずれかが含まれます。",[23,78,79,82],{},[26,80,81],{},"通常の参照：指し示すコミットのオブジェクトIDが保存されています。",[26,83,84],{},"シンボリック参照：別の参照の名前が保存されています。これは、シンボリックリンクが別のファイルを指し示すのと似ています。",[12,86,87],{},"定期的に、これらの参照は検索を効率化するために1つのpacked-refsファイルにまとめられます。",[12,89,90],{},"次の例は、「files」フォーマットがどのように動作するかを示しています。",[92,93,98],"pre",{"className":94,"code":95,"language":96,"meta":97,"style":97},"language-shell shiki shiki-themes github-light","$ git init .\n$ git commit --allow-empty --message \"Initial commit\"\n[main (root-commit) 6917c17] Initial commit\n\n# HEADはrefs/heads/mainを指すシンボリック参照です。\n$ cat .git/HEAD\nref: refs/heads/main\n\n# refs/heads/mainはコミットを指す通常の参照です。\n$ cat .git/refs/heads/main\n6917c178cfc3c50215a82cf959204e9934af24c8\n\n# git-pack-refs(1)はこれらの参照をpacked-refsファイルにパック化します。\n$ git pack-refs --all\n$ cat .git/packed-refs\n# pack-refs with: peeled fully-peeled sorted\n","shell","",[66,99,100,119,139,153,160,167,178,187,192,198,208,214,219,225,238,248],{"__ignoreMap":97},[101,102,105,109,113,116],"span",{"class":103,"line":104},"line",1,[101,106,108],{"class":107},"s7eDp","$",[101,110,112],{"class":111},"sYBdl"," git",[101,114,115],{"class":111}," init",[101,117,118],{"class":111}," .\n",[101,120,122,124,126,129,133,136],{"class":103,"line":121},2,[101,123,108],{"class":107},[101,125,112],{"class":111},[101,127,128],{"class":111}," commit",[101,130,132],{"class":131},"sYu0t"," --allow-empty",[101,134,135],{"class":131}," --message",[101,137,138],{"class":111}," \"Initial commit\"\n",[101,140,142,146,150],{"class":103,"line":141},3,[101,143,145],{"class":144},"sgsFI","[main (root",[101,147,149],{"class":148},"sD7c4","-",[101,151,152],{"class":144},"commit) 6917c17] Initial commit\n",[101,154,156],{"class":103,"line":155},4,[101,157,159],{"emptyLinePlaceholder":158},true,"\n",[101,161,163],{"class":103,"line":162},5,[101,164,166],{"class":165},"sAwPA","# HEADはrefs/heads/mainを指すシンボリック参照です。\n",[101,168,170,172,175],{"class":103,"line":169},6,[101,171,108],{"class":107},[101,173,174],{"class":111}," cat",[101,176,177],{"class":111}," .git/HEAD\n",[101,179,181,184],{"class":103,"line":180},7,[101,182,183],{"class":107},"ref:",[101,185,186],{"class":111}," refs/heads/main\n",[101,188,190],{"class":103,"line":189},8,[101,191,159],{"emptyLinePlaceholder":158},[101,193,195],{"class":103,"line":194},9,[101,196,197],{"class":165},"# refs/heads/mainはコミットを指す通常の参照です。\n",[101,199,201,203,205],{"class":103,"line":200},10,[101,202,108],{"class":107},[101,204,174],{"class":111},[101,206,207],{"class":111}," .git/refs/heads/main\n",[101,209,211],{"class":103,"line":210},11,[101,212,213],{"class":107},"6917c178cfc3c50215a82cf959204e9934af24c8\n",[101,215,217],{"class":103,"line":216},12,[101,218,159],{"emptyLinePlaceholder":158},[101,220,222],{"class":103,"line":221},13,[101,223,224],{"class":165},"# git-pack-refs(1)はこれらの参照をpacked-refsファイルにパック化します。\n",[101,226,228,230,232,235],{"class":103,"line":227},14,[101,229,108],{"class":107},[101,231,112],{"class":111},[101,233,234],{"class":111}," pack-refs",[101,236,237],{"class":131}," --all\n",[101,239,241,243,245],{"class":103,"line":240},15,[101,242,108],{"class":107},[101,244,174],{"class":111},[101,246,247],{"class":111}," .git/packed-refs\n",[101,249,251],{"class":103,"line":250},16,[101,252,253],{"class":165},"# pack-refs with: peeled fully-peeled sorted\n",[42,255,256],{"id":256},"reftableフォーマットの構造概要",[12,258,259,260,263],{},"Git 2.45.0以降がインストールされている場合、",[66,261,262],{},"--ref-format=reftable","スイッチを使用して「reftable」フォーマットでリポジトリを作成できます。",[92,265,267],{"className":94,"code":266,"language":96,"meta":97,"style":97},"$ git init --ref-format=reftable .\nInitialized empty Git repository in /tmp/repo/.git/\n$ git rev-parse --show-ref-format\nreftable\n\n# わかりやすくするために不要なファイルを削除しています。\n$ tree .git\n.git\n├── config\n├── HEAD\n├── index\n├── objects\n├── refs\n│   └── heads\n└── reftable\n    ├── 0x000000000001-0x000000000002-40a482a9.ref\n    └── tables.list\n\n4 directories, 6 files\n",[66,268,269,282,302,314,319,323,328,338,343,351,358,365,372,379,390,398,406,415,420],{"__ignoreMap":97},[101,270,271,273,275,277,280],{"class":103,"line":104},[101,272,108],{"class":107},[101,274,112],{"class":111},[101,276,115],{"class":111},[101,278,279],{"class":131}," --ref-format=reftable",[101,281,118],{"class":111},[101,283,284,287,290,293,296,299],{"class":103,"line":121},[101,285,286],{"class":107},"Initialized",[101,288,289],{"class":111}," empty",[101,291,292],{"class":111}," Git",[101,294,295],{"class":111}," repository",[101,297,298],{"class":111}," in",[101,300,301],{"class":111}," /tmp/repo/.git/\n",[101,303,304,306,308,311],{"class":103,"line":141},[101,305,108],{"class":107},[101,307,112],{"class":111},[101,309,310],{"class":111}," rev-parse",[101,312,313],{"class":131}," --show-ref-format\n",[101,315,316],{"class":103,"line":155},[101,317,318],{"class":107},"reftable\n",[101,320,321],{"class":103,"line":162},[101,322,159],{"emptyLinePlaceholder":158},[101,324,325],{"class":103,"line":169},[101,326,327],{"class":165},"# わかりやすくするために不要なファイルを削除しています。\n",[101,329,330,332,335],{"class":103,"line":180},[101,331,108],{"class":107},[101,333,334],{"class":111}," tree",[101,336,337],{"class":111}," .git\n",[101,339,340],{"class":103,"line":189},[101,341,342],{"class":107},".git\n",[101,344,345,348],{"class":103,"line":194},[101,346,347],{"class":107},"├──",[101,349,350],{"class":111}," config\n",[101,352,353,355],{"class":103,"line":200},[101,354,347],{"class":107},[101,356,357],{"class":111}," HEAD\n",[101,359,360,362],{"class":103,"line":210},[101,361,347],{"class":107},[101,363,364],{"class":111}," index\n",[101,366,367,369],{"class":103,"line":216},[101,368,347],{"class":107},[101,370,371],{"class":111}," objects\n",[101,373,374,376],{"class":103,"line":221},[101,375,347],{"class":107},[101,377,378],{"class":111}," refs\n",[101,380,381,384,387],{"class":103,"line":227},[101,382,383],{"class":107},"│",[101,385,386],{"class":111},"   └──",[101,388,389],{"class":111}," heads\n",[101,391,392,395],{"class":103,"line":240},[101,393,394],{"class":107},"└──",[101,396,397],{"class":111}," reftable\n",[101,399,400,403],{"class":103,"line":250},[101,401,402],{"class":107},"    ├──",[101,404,405],{"class":111}," 0x000000000001-0x000000000002-40a482a9.ref\n",[101,407,409,412],{"class":103,"line":408},17,[101,410,411],{"class":107},"    └──",[101,413,414],{"class":111}," tables.list\n",[101,416,418],{"class":103,"line":417},18,[101,419,159],{"emptyLinePlaceholder":158},[101,421,423,426,429,432],{"class":103,"line":422},19,[101,424,425],{"class":107},"4",[101,427,428],{"class":111}," directories,",[101,430,431],{"class":131}," 6",[101,433,434],{"class":111}," files\n",[12,436,437,438,441],{},"まず、リポジトリの設定を見ると、それには",[66,439,440],{},"extension.refstorage","キーがあります。",[92,443,445],{"className":94,"code":444,"language":96,"meta":97,"style":97},"$ cat .git/config\n[core]\n    repositoryformatversion = 1\n    filemode = true\n    bare = false\n    logallrefupdates = true\n[extensions]\n    refstorage = reftable\n",[66,446,447,456,461,472,482,492,501,506],{"__ignoreMap":97},[101,448,449,451,453],{"class":103,"line":104},[101,450,108],{"class":107},[101,452,174],{"class":111},[101,454,455],{"class":111}," .git/config\n",[101,457,458],{"class":103,"line":121},[101,459,460],{"class":144},"[core]\n",[101,462,463,466,469],{"class":103,"line":141},[101,464,465],{"class":107},"    repositoryformatversion",[101,467,468],{"class":111}," =",[101,470,471],{"class":131}," 1\n",[101,473,474,477,479],{"class":103,"line":155},[101,475,476],{"class":107},"    filemode",[101,478,468],{"class":111},[101,480,481],{"class":131}," true\n",[101,483,484,487,489],{"class":103,"line":162},[101,485,486],{"class":107},"    bare",[101,488,468],{"class":111},[101,490,491],{"class":131}," false\n",[101,493,494,497,499],{"class":103,"line":169},[101,495,496],{"class":107},"    logallrefupdates",[101,498,468],{"class":111},[101,500,481],{"class":131},[101,502,503],{"class":103,"line":180},[101,504,505],{"class":144},"[extensions]\n",[101,507,508,511,513],{"class":103,"line":189},[101,509,510],{"class":107},"    refstorage",[101,512,468],{"class":111},[101,514,397],{"class":111},[12,516,517],{},"この設定は、リポジトリが「reftable」フォーマットで初期化されており、「reftable」バックエンドを使用してアクセスするようGitに指示するものです。",[12,519,520],{},"不思議なことに、このリポジトリにはまだ「files」バックエンドが使われているかのように見えるいくつかのファイルがあります。",[23,522,523,536],{},[26,524,525,528,529,531,532,535],{},[66,526,527],{},"HEAD","は通常、現在チェックアウト済みのブランチを指すシンボリック参照です。「reftable」バックエンドでは使用されませんが、GitクライアントがディレクトリをGitリポジトリとして検出するために必要です。したがって、「reftable」フォーマットを使用する場合、",[66,530,527],{},"は",[66,533,534],{},"ref: refs/heads/.invalid","という内容のスタブになります。",[26,537,538,541,542,545],{},[66,539,540],{},"refs/heads","は、",[66,543,544],{},"this repository uses the reftable format","という内容が書かれているファイルです。「reftable」フォーマットを認識できないGitクライアントは、このパスがディレクトリであると想定します。したがって、このパスをファイルとして作成することで、古いGitクライアントが「files」バックエンドでリポジトリにアクセスしようとすると、意図的に失敗するようになります。",[12,547,548,549,552],{},"実際の参照は、次のように",[66,550,551],{},"reftable/","ディレクトリに保存されます。",[92,554,556],{"className":94,"code":555,"language":96,"meta":97,"style":97},"$ tree .git/reftable\n.git/reftable/\n├── 0x000000000001-0x000000000001-794bd722.ref\n└── tables.list\n\n$ cat .git/reftable/tables.list\n0x000000000001-0x000000000001-794bd722.ref\n",[66,557,558,567,572,579,585,589,598],{"__ignoreMap":97},[101,559,560,562,564],{"class":103,"line":104},[101,561,108],{"class":107},[101,563,334],{"class":111},[101,565,566],{"class":111}," .git/reftable\n",[101,568,569],{"class":103,"line":121},[101,570,571],{"class":107},".git/reftable/\n",[101,573,574,576],{"class":103,"line":141},[101,575,347],{"class":107},[101,577,578],{"class":111}," 0x000000000001-0x000000000001-794bd722.ref\n",[101,580,581,583],{"class":103,"line":155},[101,582,394],{"class":107},[101,584,414],{"class":111},[101,586,587],{"class":103,"line":162},[101,588,159],{"emptyLinePlaceholder":158},[101,590,591,593,595],{"class":103,"line":169},[101,592,108],{"class":107},[101,594,174],{"class":111},[101,596,597],{"class":111}," .git/reftable/tables.list\n",[101,599,600],{"class":103,"line":180},[101,601,602],{"class":107},"0x000000000001-0x000000000001-794bd722.ref\n",[12,604,605],{},"ここには、次の2つのファイルがあります。",[23,607,608,614],{},[26,609,610,613],{},[66,611,612],{},"0x000000000001-0x000000000001-794bd722.ref","は、参照と参照ログデータをバイナリフォーマットで含むテーブルです。",[26,615,616,619],{},[66,617,618],{},"tables.list","は、テーブルのリストです。リポジトリの現在の状態では、このファイルにはテーブルの名前の1行だけが含まれています。このファイルは「reftable」データベースにある現在有効なテーブルをまとめて追跡し、新しいテーブルがリポジトリに追加されるたびに更新されます。",[12,621,622],{},"次のように、参照を更新すると、新しいテーブルが作成されます。",[92,624,626],{"className":94,"code":625,"language":96,"meta":97,"style":97},"$ git commit --allow-empty --message \"Initial commit\"\n[main (root-commit) 1472a58] Initial commit\n\n$ tree .git/reftable\n.git/reftable/\n├── 0x000000000001-0x000000000002-eb87d12b.ref\n└── tables.list\n\n$ cat .git/reftable/tables.list\n0x000000000001-0x000000000002-eb87d12b.ref\n",[66,627,628,642,651,655,663,667,674,680,684,692],{"__ignoreMap":97},[101,629,630,632,634,636,638,640],{"class":103,"line":104},[101,631,108],{"class":107},[101,633,112],{"class":111},[101,635,128],{"class":111},[101,637,132],{"class":131},[101,639,135],{"class":131},[101,641,138],{"class":111},[101,643,644,646,648],{"class":103,"line":121},[101,645,145],{"class":144},[101,647,149],{"class":148},[101,649,650],{"class":144},"commit) 1472a58] Initial commit\n",[101,652,653],{"class":103,"line":141},[101,654,159],{"emptyLinePlaceholder":158},[101,656,657,659,661],{"class":103,"line":155},[101,658,108],{"class":107},[101,660,334],{"class":111},[101,662,566],{"class":111},[101,664,665],{"class":103,"line":162},[101,666,571],{"class":107},[101,668,669,671],{"class":103,"line":169},[101,670,347],{"class":107},[101,672,673],{"class":111}," 0x000000000001-0x000000000002-eb87d12b.ref\n",[101,675,676,678],{"class":103,"line":180},[101,677,394],{"class":107},[101,679,414],{"class":111},[101,681,682],{"class":103,"line":189},[101,683,159],{"emptyLinePlaceholder":158},[101,685,686,688,690],{"class":103,"line":194},[101,687,108],{"class":107},[101,689,174],{"class":111},[101,691,597],{"class":111},[101,693,694],{"class":103,"line":200},[101,695,696],{"class":107},"0x000000000001-0x000000000002-eb87d12b.ref\n",[12,698,699,700,702],{},"ご覧のとおり、以前のテーブルは新しいテーブルに置き換えられました。さらに、",[66,701,618],{},"ファイルが更新され、新しいテーブルが取り込まれました。",[42,704,705],{"id":705},"テーブルの構造",[12,707,708],{},"前述のとおり、参照データベースの実際のデータはテーブルに含まれています。テーブルは大まかに次のような複数のセクションに分かれています。",[23,710,711,714,717,720,723],{},[26,712,713],{},"header：テーブルに関するメタデータが含まれています。これには、フォーマットのバージョン、ブロックサイズ、およびリポジトリで使用されるハッシュ関数（SHA1、SHA256など）が、他の情報と一緒に含まれています。",[26,715,716],{},"ref：参照が含まれています。これらのレコードは参照名と等しいキーを有し、通常の参照の場合はオブジェクトIDを、シンボリック参照の場合は他の参照を指します。",[26,718,719],{},"obj：オブジェクトIDからそれらのオブジェクトIDを指す参照への逆マッピングが含まれています。これにより、Gitは特定のオブジェクトIDを指す参照を効率的に検索できます。",[26,721,722],{},"log：参照ログエントリが含まれています。これらのレコードは、参照名にログエントリの番号を表すインデックスを付け足したものと等しいキーを有し、 さらに、古いオブジェクトIDと新しいオブジェクトID、およびその参照ログエントリのメッセージを含みます。",[26,724,725],{},"footer：各セクションへのオフセットが含まれます。",[12,727,728],{},[729,730],"img",{"alt":731,"src":732},"すべてのreftableセクションを含んだ縦長の表","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675179/Blog/Content%20Images/Frame_1_-_Reftable_overview.svg",[12,734,735,736,739,740,743,744,746,747,749],{},"各セクションのタイプは、似たような構造を持っています。セクションには一連のレコードが含まれており、各レコードのキーでソートされています。たとえば、 ",[66,737,738],{},"refs/heads/aaaaa","と ",[66,741,742],{},"refs/heads/bbb","という2つの参照レコードがある場合、これらの参照名がそれぞれのキーとなり、",[66,745,738],{},"が",[66,748,742],{},"よりも前に来ます。",[12,751,752],{},"さらに、各セクションは固定長のブロックに分割されています。このブロックの長さはヘッダー（header）にエンコードされており、次の2つの目的を果たします。",[23,754,755,758],{},[26,756,757],{},"セクションの開始位置とブロックサイズに基づき、リーダー（reader）は各ブロックの開始位置を暗に認識します。これにより、Gitは先行するブロックを読み込むことなくセクションの途中に簡単に移動できるため、ブロック上でのバイナリ検索が可能になり、レコードの検索を高速化します。",[26,759,760],{},"一度に読み込むディスクデータの量をリーダーが認識できるようにします。このために、ブロックサイズはデフォルトで4KiBに設定されており、これはハードディスクのセクターサイズとしては最も一般的です。最大ブロックサイズは16MBです。",[12,762,763],{},"たとえば、「ref」セクションを覗いてみると、おおよそ次の図のようになります。ここで留意すべき点は、レコードがブロック内で、そしてブロック間の両方で辞書順に並んでいることです。",[12,765,766],{},[729,767],{"alt":768,"src":769},"未圧縮参照ブロック","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675179/Blog/Content%20Images/Frame_2_-_Ref_block_uncompressed.svg",[12,771,772],{},"現在の情報を基に、次の手順でレコードを検索できます。",[774,775,776,779],"ol",{},[26,777,778],{},"各ブロックの最初のレコードのキーを確認してバイナリ検索を行い、目的のレコードが含まれているブロックを特定します。",[26,780,781],{},"特定したブロック内で線形検索を行い、目的のレコードを特定します。",[12,783,784],{},"この手順はまだ少し非効率です。多くのブロックがある場合、目的のブロックを特定するためにバイナリ検索で対数的に多くのブロックを読み込むことが必要になる場合があります。また、ブロックに多数のレコードが含まれている場合、線形検索中にすべてのレコードの読み込みが必要になる可能性もあります。",[12,786,787],{},"「reftable」フォーマットには、これらのパフォーマンス問題に対処する追加のメカニズムが組み込まれています。後のセクションでこれらについて詳しく説明します。",[789,790,791],"h3",{"id":791},"プレフィックス圧縮",[12,793,794,795,798],{},"お気づきかもしれませんが、すべてのレコードキーには",[66,796,797],{},"refs/","という共通のプレフィックスがあります。これはGitでは一般的です。",[23,800,801,808],{},[26,802,803,804,807],{},"すべてのブランチは",[66,805,806],{},"refs/heads/","で始まります。",[26,809,810,811,807],{},"すべてのタグは",[66,812,813],{},"refs/tags /",[12,815,816],{},"したがって、後続のレコードもキーの大部分で共通のプレフィックスを持つことが予想されます。これを利用して、貴重なディスク容量を節約できます。ほとんどのキーが共通のプレフィックスを持つことがわかっているため、これを最適化するのは理にかなっています。",[12,818,819,820,823,824,827,828,831,832,834,835,837,838,840],{},"この最適化にはプレフィックス圧縮を使用します。各レコードは、前のレコードのキーから何バイトを再利用するかを示すプレフィックスの長さがエンコードされています。たとえば、",[66,821,822],{},"refs/heads/a","と",[66,825,826],{},"refs/heads/b","という2つのレコードがある場合、後者はプレフィックスの長さを11バイトとしてエンコードし、サフィックスとして",[66,829,830],{},"b","だけを保存します。その後、リーダーは",[66,833,822],{},"の最初の11バイト（",[66,836,806],{},"）を取得し、サフィックス",[66,839,830],{},"を追加します。",[12,842,843],{},[729,844],{"alt":791,"src":845},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675179/Blog/Content%20Images/Frame_3_-_Ref_block_prefix_compression.svg",[789,847,848],{"id":848},"再起点",[12,850,851],{},"前述のように、現在の「reftable」フォーマットの理解に基づいてブロック内の参照を検索する最適な方法は、線形検索です。これは、レコードが固定長ではないため、ブロックの先頭からスキャンしないとレコードの開始位置を特定できないためです。また、レコードが固定長であったとしても、レフィックス圧縮があるため、先行するレコードを読み込む必要があり、ブロックの途中に直接移動はできません。\nしかし、ブロックには数百から数千のレコードが含まれる可能性があり、線形検索は非常に非効率です。この問題に対処するために、「reftable」フォーマットは各ブロックに「再起点」と呼ばれるポイントをエンコードします。再起点は圧縮されていないレコードであり、ここではプレフィックス圧縮がリセットされます。したがって、再起点のレコードは常に完全なキーを含んでおり、先行するレコードをスキップしながら直接移動してレコードを読み込むことが可能になります。これらの再起点は各ブロックのフッターにリストされています。",[12,853,854],{},"この情報を用いることで、ブロック全体を線形検索する必要がなくなります。代わりに、再起点のバイナリ検索を行い、目的のキーより大きい最初の再起点を探します。そこから、目的のレコードが_前の_再起点から特定された再起点までのセクションに存在することがわかります。",[12,856,857],{},"したがって、レコードを検索する最初の手順（ブロックのバイナリ検索、レコードの線形検索）は次のようになります。",[774,859,860,863,866],{},[26,861,862],{},"ブロックのバイナリ検索を行い、目的のレコードが含まれるブロックを特定します。",[26,864,865],{},"再起点のバイナリ検索を行い、目的のレコードが含まれるブロックのサブセクションを特定します。",[26,867,868],{},"特定したサブセクション内でレコードの線形検索を行います。",[12,870,871],{},[729,872],{"alt":873,"src":874},"レコードの線形検索","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675179/Blog/Content%20Images/Frame_4_-_Restart_points.svg",[789,876,877],{"id":877},"インデックス",[12,879,880],{},"ブロック内のレコードの検索はかなり効率化されましたが、ブロック自体の位置を特定するのはまだ効率的とはいえません。数個のブロックであればバイナリ検索でも十分に効率的です。しかし、数百万もの参照を含むリポジトリには数百から数千のブロックが存在します。この場合、追加のデータ構造がなければ、平均して対数的に多くのディスクアクセスが必要になります。",[12,882,883],{},"この問題を避けるために、各セクションの後にブロックを効率的に検索するためのインデックスセクションを追加できます。各インデックスレコードには次の情報が含まれます。",[23,885,886,889],{},[26,887,888],{},"インデックス化されているブロックの位置。",[26,890,891],{},"インデックス化されているブロックの最後のレコードのキー。",[12,893,894],{},"3つ以下のブロックであれば、バイナリ検索は最大2回のディスク読み取りで目的のブロックを特定できます。この読み取り回数は、インデックスを使用する場合も同じです。具体的には、インデックス自体を読み取るための1回と、目的のブロックを読む取るための1回です。したがって、インデックスは実際に読み取り回数を減らす場合、つまりインデックス化されたブロックが4つ以上ある場合にのみ作成されます。",[12,896,897],{},"次の疑問は、インデックス自体が複数のブロックにまたがるほど大きくなった場合はどうすべきかという点です。その答えは、そのインデックスをインデックス化するために別のインデックスを作成するというものです。この複数階層のインデックスは、数十万もの参照があるリポジトリでのみ必要となります。",[12,899,900],{},"次のインデックスを使用することで、レコードの検索手順をさらに効率化できます。",[774,902,903,914,917],{},[26,904,905,906],{},"テーブルのフッターを見てインデックスがあるかどうかを確認します。\n",[23,907,908,911],{},[26,909,910],{},"インデックスがあれば、バイナリ検索を行い、目的のブロックを特定します。このブロックがインデックスブロック自体を指している場合は、目的のレコードタイプに到達するまでこの手順を繰り返します。",[26,912,913],{},"インデックスがなければ、先ほどのようにブロックのバイナリ検索を行います。",[26,915,916],{},"再起点のバイナリ検索を行い、目的のレコードが含まれているブロックのサブセクションを特定します。",[26,918,868],{},[42,920,921],{"id":921},"複数のテーブル",[12,923,924,925,927],{},"ここまでは、単一のテーブルを読み取る方法について説明してきましたが、",[66,926,618],{},"という名前が示すように、「reftable」データベースには複数のテーブルを格納できます。",[12,929,930,931,933],{},"リポジトリ内の参照を更新するたびに、新しいテーブルが作成され、",[66,932,618],{},"に追加されます。したがって、最終的には次のように複数のテーブルが存在することになります。",[92,935,937],{"className":94,"code":936,"language":96,"meta":97,"style":97},"$ tree .git/reftable/\n.git/reftable/\n├── 0x000000000001-0x000000000007-8dcd8a77.ref\n├── 0x000000000008-0x000000000008-30e0f6f6.ref\n└── tables.list\n\n$ cat .git/reftable/tables.list\n0x000000000001-0x000000000007-8dcd8a77.ref\n0x000000000008-0x000000000008-30e0f6f6.ref\n",[66,938,939,948,952,959,966,972,976,984,989],{"__ignoreMap":97},[101,940,941,943,945],{"class":103,"line":104},[101,942,108],{"class":107},[101,944,334],{"class":111},[101,946,947],{"class":111}," .git/reftable/\n",[101,949,950],{"class":103,"line":121},[101,951,571],{"class":107},[101,953,954,956],{"class":103,"line":141},[101,955,347],{"class":107},[101,957,958],{"class":111}," 0x000000000001-0x000000000007-8dcd8a77.ref\n",[101,960,961,963],{"class":103,"line":155},[101,962,347],{"class":107},[101,964,965],{"class":111}," 0x000000000008-0x000000000008-30e0f6f6.ref\n",[101,967,968,970],{"class":103,"line":162},[101,969,394],{"class":107},[101,971,414],{"class":111},[101,973,974],{"class":103,"line":169},[101,975,159],{"emptyLinePlaceholder":158},[101,977,978,980,982],{"class":103,"line":180},[101,979,108],{"class":107},[101,981,174],{"class":111},[101,983,597],{"class":111},[101,985,986],{"class":103,"line":189},[101,987,988],{"class":107},"0x000000000001-0x000000000007-8dcd8a77.ref\n",[101,990,991],{"class":103,"line":194},[101,992,993],{"class":107},"0x000000000008-0x000000000008-30e0f6f6.ref\n",[12,995,996],{},"リポジトリの実際の状態を読み取るためには、これらの複数のテーブルを単一の仮想テーブルにマージする必要があります。",[12,998,999],{},"ここで疑問が生じます。それは、参照が更新されるたびにテーブルが作成され、同じ参照が複数回更新される場合、「reftable」フォーマットは特定の参照の最新の値をどのように把握するのか、ということです。直感的には、最新のテーブルに含まれる参照の値が最新であると仮定できます。",[12,1001,1002],{},"実際には、各レコードには「更新インデックス」と呼ばれるものがあり、これがレコードの「優先度」をエンコードしています。たとえば、同じ名前の2つの参照レコードが存在する場合、更新インデックスが高い方が低い方を上書きします。",[12,1004,1005,1006,1009],{},"これらの更新インデックスは、上のファイル構造で確認できます。長い16進文字列（例：",[66,1007,1008],{},"0x000000000001","）が更新インデックスであり、テーブル名の左側がテーブルに含まれる最小の更新インデックス、そして右側が最大の更新インデックスを示しています。",[12,1011,1012,1013,1018],{},"テーブルのマージは、参照レコードのキーと更新インデックスによって順序付けられた",[16,1014,1017],{"href":1015,"rel":1016},"https://en.wikipedia.org/wiki/Priority_queue",[],"優先キュー","を介して行われます。すべての参照レコードをスキャンする場合、次の手順で行います。",[774,1020,1021],{},[26,1022,1023],{},"各テーブルの最初のレコードを優先キューに追加します。",[12,1025,1026],{},[729,1027],{"alt":1028,"src":1029},"優先キューに最初のレコードを追加する","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675179/Blog/Content%20Images/Frame_5_-_Priority_queue_1.svg",[774,1031,1032],{"start":121},[26,1033,1034],{},"優先キューの先頭を取り出します。このキューは更新インデックス順に並んでいるため、先頭にあるレコードは最新のバージョンでなければなりません。そのテーブルの次の項目を優先キューに追加します。",[12,1036,1037],{},[729,1038],{"alt":1039,"src":1040},"優先キューの先頭を取り出す","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675179/Blog/Content%20Images/Frame_6_-_Priority_queue_2.svg",[774,1042,1043],{"start":141},[26,1044,1045],{},"同じ名前を持つすべてのレコードをキューから削除します。これらのレコードは上書きされているため表示されません。レコードを削除した各テーブルについては、その次のレコードを優先キューに追加します。",[12,1047,1048],{},[729,1049],{"alt":1050,"src":1051},"同じ名前を持つすべてのレコードをキューから削除する","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749675179/Blog/Content%20Images/Frame_7_-_Priority_queue_3.svg",[12,1053,1054],{},"これを繰り返して、他のキーのレコードを読み取ります。",[12,1056,1057],{},"テーブルには、レコードが削除されたことを示す特殊な「トゥームストーン」レコードが含まれている場合があります。このように、すべてのテーブルを書き換えることなく、レコードを削除できます。",[789,1059,1060],{"id":1060},"自動圧縮",[12,1062,1063,1064,1066],{},"優先キューの考え方はシンプルですが、このアプローチでは、マージするテーブルの数が数百個、あるいは数十個であっても、非常に非効率になります。参照を更新するたびに新しいテーブルが",[66,1065,618],{},"ファイルに付加されるのは事実ですが、他にも重要な特徴があります。",[12,1068,1069,1070,1075,1076,1079,1080,1083],{},"それが、自動圧縮です。新しいテーブルがテーブルリストに付加された後、「reftable」バックエンドは一部のテーブルをマージする必要があるかどうかを確認します。これは、シンプルなルールを使って行われます。具体的には、テーブルのリストがファイルサイズの",[16,1071,1074],{"href":1072,"rel":1073},"https://en.wikipedia.org/wiki/Geometric_progression",[],"幾何数列","を形成しているかどうかをチェックします。すべてのテーブル",[66,1077,1078],{},"n","は、その次に新しいテーブル",[66,1081,1082],{},"n+1","の2倍以上のサイズでなければなりません。この幾何数列が維持されなかった場合、バックエンドはテーブルを圧縮して幾何数列を復元します。",[12,1085,1086],{},"時間が経つにつれて、次のような構造になります。",[92,1088,1090],{"className":94,"code":1089,"language":96,"meta":97,"style":97},"$ du --apparent-size .git/reftable/*\n429    .git/reftable/0x000000000001-0x00000000bd7c-d9819000.ref\n101    .git/reftable/0x00000000bd7d-0x00000000c5ac-c34b88a4.ref\n32    .git/reftable/0x00000000c5ad-0x00000000cc6c-60391f53.ref\n8    .git/reftable/0x00000000cc6d-0x00000000cdc1-61c30db1.ref\n3    .git/reftable/0x00000000cdc2-0x00000000ce67-d9b55a96.ref\n1    .git/reftable/0x00000000ce68-0x00000000ce6b-44721696.ref\n1    .git/reftable/tables.list\n",[66,1091,1092,1108,1116,1124,1132,1140,1148,1156],{"__ignoreMap":97},[101,1093,1094,1096,1099,1102,1105],{"class":103,"line":104},[101,1095,108],{"class":107},[101,1097,1098],{"class":111}," du",[101,1100,1101],{"class":131}," --apparent-size",[101,1103,1104],{"class":111}," .git/reftable/",[101,1106,1107],{"class":131},"*\n",[101,1109,1110,1113],{"class":103,"line":121},[101,1111,1112],{"class":107},"429",[101,1114,1115],{"class":111},"    .git/reftable/0x000000000001-0x00000000bd7c-d9819000.ref\n",[101,1117,1118,1121],{"class":103,"line":141},[101,1119,1120],{"class":107},"101",[101,1122,1123],{"class":111},"    .git/reftable/0x00000000bd7d-0x00000000c5ac-c34b88a4.ref\n",[101,1125,1126,1129],{"class":103,"line":155},[101,1127,1128],{"class":107},"32",[101,1130,1131],{"class":111},"    .git/reftable/0x00000000c5ad-0x00000000cc6c-60391f53.ref\n",[101,1133,1134,1137],{"class":103,"line":162},[101,1135,1136],{"class":107},"8",[101,1138,1139],{"class":111},"    .git/reftable/0x00000000cc6d-0x00000000cdc1-61c30db1.ref\n",[101,1141,1142,1145],{"class":103,"line":169},[101,1143,1144],{"class":107},"3",[101,1146,1147],{"class":111},"    .git/reftable/0x00000000cdc2-0x00000000ce67-d9b55a96.ref\n",[101,1149,1150,1153],{"class":103,"line":180},[101,1151,1152],{"class":107},"1",[101,1154,1155],{"class":111},"    .git/reftable/0x00000000ce68-0x00000000ce6b-44721696.ref\n",[101,1157,1158,1160],{"class":103,"line":189},[101,1159,1152],{"class":107},[101,1161,1162],{"class":111},"    .git/reftable/tables.list\n",[12,1164,1165,1166,1169],{},"すべてのテーブルにおいて、",[66,1167,1168],{},"size(n) > size(n+1) * 2","という性質が維持されていることに注目してください。",[12,1171,1172,1173,1176],{},"自動圧縮がもたらすメリットのひとつは、「reftable」バックエンドのメンテナンスが自動化されることです。これにより、リポジトリで",[66,1174,1175],{},"git pack-refs","を実行する必要がなくなります。",[42,1178,1179],{"id":1179},"さらに詳しく知りたい方へ",[12,1181,1182,1183,1188],{},"この記事では、新しい「reftable」フォーマットの仕組みについて解説しました。さらに詳しく知りたい場合は、Gitプロジェクトで提供される",[16,1184,1187],{"href":1185,"rel":1186},"https://git-scm.com/docs/reftable",[],"テクニカルドキュメント","をご参照ください。",[1190,1191,1192],"blockquote",{},[12,1193,1194,1197],{},[16,1195,20],{"href":18,"rel":1196},[],"では、このバージョンにおけるその他の変更点をご確認いただけます。",[12,1199,1200],{},[1201,1202,1203,1204,1209,1212],"em",{},"監修：川瀬 洋平 ",[16,1205,1208],{"href":1206,"rel":1207},"https://gitlab.com/ykawase",[],"@ykawase",[1210,1211],"br",{},"\n（GitLab合同会社 カスタマーサクセス本部 シニアカスタマーサクセスマネージャー）",[1214,1215,1216],"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 pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}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);}",{"title":97,"searchDepth":121,"depth":121,"links":1218},[1219,1220,1221,1226,1229],{"id":44,"depth":121,"text":45},{"id":256,"depth":121,"text":256},{"id":705,"depth":121,"text":705,"children":1222},[1223,1224,1225],{"id":791,"depth":141,"text":791},{"id":848,"depth":141,"text":848},{"id":877,"depth":141,"text":877},{"id":921,"depth":121,"text":921,"children":1227},[1228],{"id":1060,"depth":141,"text":1060},{"id":1179,"depth":121,"text":1179},"open-source","2024-05-30","Git 2.45.0では、GitLabがreftableバックエンドをGitに取り込んだことで、参照の保存方法が完全に変更されました。この新しいフォーマットの内部の仕組みを詳しく見てみましょう。","md",null,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749664595/Blog/Hero%20Images/blog-image-template-1800x945__9_.png",false,{},"/ja-jp/blog/a-beginners-guide-to-the-git-reftable-format",{"title":5,"description":1232,"ogTitle":5,"ogDescription":1232,"noIndex":1236,"ogImage":1235,"ogUrl":1240,"ogSiteName":1241,"ogType":1242,"canonicalUrls":1240},"https://about.gitlab.com/blog/a-beginners-guide-to-the-git-reftable-format","https://about.gitlab.com","article","a-beginners-guide-to-the-git-reftable-format","ja-jp/blog/a-beginners-guide-to-the-git-reftable-format",[1246,1247,1248,1249],"git","tutorial","open source","performance","BlogPost","2025-02-04","MOJ35qYRfz4pV-_6HZj76ktnUr_2z7GupVLZkJGKtkw",{"logo":1254,"freeTrial":1259,"sales":1264,"login":1269,"items":1274,"search":1605,"minimal":1639,"duo":1657,"switchNav":1666,"pricingDeployment":1677},{"config":1255},{"href":1256,"dataGaName":1257,"dataGaLocation":1258},"/ja-jp/","gitlab logo","header",{"text":1260,"config":1261},"無料トライアルを開始",{"href":1262,"dataGaName":1263,"dataGaLocation":1258},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/ja-jp&glm_content=default-saas-trial/","free trial",{"text":1265,"config":1266},"デモをリクエスト",{"href":1267,"dataGaName":1268,"dataGaLocation":1258},"/ja-jp/request-a-demo/","sales",{"text":1270,"config":1271},"サインイン",{"href":1272,"dataGaName":1273,"dataGaLocation":1258},"https://gitlab.com/users/sign_in/","sign in",[1275,1361,1449,1454,1529,1583],{"text":1276,"left":158,"config":1277,"menu":1279},"プラットフォーム",{"dataNavLevelOne":1278},"platform",{"type":1280,"link":1281,"columns":1285,"feature":1350},"lists",{"text":1282,"config":1283},"プラットフォームを詳しく見る",{"href":1284,"dataGaName":1278,"dataGaLocation":1258},"/ja-jp/platform/",[1286,1309,1332],{"title":1287,"items":1288},"DevOps",[1289,1294,1299,1304],{"text":1290,"config":1291},"CI/CD",{"href":1292,"dataGaLocation":1258,"dataGaName":1293},"/ja-jp/solutions/continuous-integration/","ci/cd",{"text":1295,"config":1296},"ソースコード管理",{"href":1297,"dataGaLocation":1258,"dataGaName":1298},"/ja-jp/solutions/source-code-management/","source code management",{"text":1300,"config":1301},"アジャイルデリバリー",{"href":1302,"dataGaLocation":1258,"dataGaName":1303},"/ja-jp/solutions/agile-delivery/","agile delivery",{"text":1305,"config":1306},"アーティファクト管理",{"href":1307,"dataGaLocation":1258,"dataGaName":1308},"/ja-jp/artifact-central/","artifact management",{"title":1310,"items":1311},"セキュリティとガバナンス",[1312,1317,1322,1327],{"text":1313,"config":1314},"アプリケーションセキュリティテスト",{"href":1315,"dataGaLocation":1258,"dataGaName":1316},"/ja-jp/solutions/application-security-testing/","application security testing",{"text":1318,"config":1319},"ガバナンスとコンプライアンス",{"href":1320,"dataGaLocation":1258,"dataGaName":1321},"/ja-jp/solutions/software-compliance/","governance and compliance",{"text":1323,"config":1324},"シークレット管理",{"href":1325,"dataGaLocation":1258,"dataGaName":1326},"/ja-jp/gitlab-secrets-manager/","secrets management",{"text":1328,"config":1329},"サプライチェーンセキュリティ",{"href":1330,"dataGaLocation":1258,"dataGaName":1331},"/ja-jp/solutions/supply-chain/","supply chain security",{"title":1333,"items":1334},"エージェント型AIとコンテキスト",[1335,1340,1345],{"text":1336,"config":1337},"Duo Agent Platform",{"href":1338,"dataGaLocation":1258,"dataGaName":1339},"/ja-jp/gitlab-duo-agent-platform/","duo agent platform",{"text":1341,"config":1342},"Orbitコンテキストグラフ",{"href":1343,"dataGaLocation":1258,"dataGaName":1344},"/ja-jp/gitlab-orbit/","orbit",{"text":1346,"config":1347},"可視性と測定",{"href":1348,"dataGaLocation":1258,"dataGaName":1349},"/ja-jp/solutions/visibility-measurement/","visibility and measurement",{"config":1351,"title":1354,"text":1355,"link":1356},{"background":1352,"textColor":1353},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbitが一般提供開始","エージェントの精度向上とトークンコストの削減",{"text":1357,"config":1358},"発表を読む",{"href":1359,"dataGaName":1360,"dataGaLocation":1258},"/ja-jp/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1362,"left":158,"config":1363,"menu":1365},"ソリューション",{"dataNavLevelOne":1364},"solutions",{"type":1280,"link":1366,"columns":1370,"feature":1440},{"text":1367,"config":1368},"すべてのソリューションを表示",{"href":1369,"dataGaName":1364,"dataGaLocation":1258},"/ja-jp/solutions/",[1371,1389,1407],{"title":1372,"items":1373},"成果",[1374,1379,1384],{"text":1375,"config":1376},"DevOpsモダナイゼーション",{"href":1377,"dataGaLocation":1258,"dataGaName":1378},"/ja-jp/assessments/devops-modernization-assessment/","devops modernization",{"text":1380,"config":1381},"セキュリティモダナイゼーション",{"href":1382,"dataGaLocation":1258,"dataGaName":1383},"/ja-jp/assessments/security-modernization-assessment/","security modernization",{"text":1385,"config":1386},"AIモダナイゼーション",{"href":1387,"dataGaLocation":1258,"dataGaName":1388},"/ja-jp/assessments/ai-modernization-assessment/","ai modernization",{"title":1390,"items":1391},"規模別",[1392,1397,1402],{"text":1393,"config":1394},"エンタープライズ",{"href":1395,"dataGaLocation":1258,"dataGaName":1396},"/ja-jp/enterprise/","enterprise",{"text":1398,"config":1399},"スモールビジネス",{"href":1400,"dataGaLocation":1258,"dataGaName":1401},"/ja-jp/small-business/","small business",{"text":1403,"config":1404},"スタートアップ",{"href":1405,"dataGaLocation":1258,"dataGaName":1406},"/ja-jp/solutions/startups/","startups",{"title":1408,"items":1409},"業界",[1410,1415,1420,1425,1430,1435],{"text":1411,"config":1412},"金融サービス",{"href":1413,"dataGaLocation":1258,"dataGaName":1414},"/ja-jp/solutions/finance/","financial services",{"text":1416,"config":1417},"公共部門",{"href":1418,"dataGaLocation":1258,"dataGaName":1419},"/ja-jp/solutions/public-sector/","public sector",{"text":1421,"config":1422},"通信",{"href":1423,"dataGaLocation":1258,"dataGaName":1424},"/ja-jp/solutions/telecommunications/","telecommunications",{"text":1426,"config":1427},"自動車",{"href":1428,"dataGaLocation":1258,"dataGaName":1429},"/ja-jp/solutions/automotive/","automotive",{"text":1431,"config":1432},"教育",{"href":1433,"dataGaLocation":1258,"dataGaName":1434},"/ja-jp/solutions/education/","education",{"text":1436,"config":1437},"航空宇宙",{"href":1438,"dataGaLocation":1258,"dataGaName":1439},"/ja-jp/solutions/aerospace/","aerospace",{"config":1441,"title":1442,"text":1443,"link":1444},{"background":1352,"textColor":1353},"GitLabのセキュリティ標準","セキュリティを犠牲にすることなく、ソフトウェアファクトリーを強化し、自律的なAIエージェントを実現する方法をご覧ください。",{"text":1445,"config":1446},"標準を見る",{"href":1447,"dataGaName":1448,"dataGaLocation":1258},"/ja-jp/gitlab-security-standard/","gitlab security standard",{"text":1450,"config":1451},"料金",{"href":1452,"dataGaName":1453,"dataGaLocation":1258,"dataNavLevelOne":1453},"/ja-jp/pricing/","pricing",{"text":1455,"config":1456,"menu":1458},"リソース",{"dataNavLevelOne":1457},"resources",{"type":1280,"link":1459,"columns":1463,"feature":1520},{"text":1460,"config":1461},"すべてのリソースを表示",{"href":1462,"dataGaName":1457,"dataGaLocation":1258},"/ja-jp/resources/",[1464,1492],{"title":1465,"items":1466},"検索する",[1467,1472,1477,1482,1487],{"text":1468,"config":1469},"製品ドキュメント",{"href":1470,"dataGaName":1471,"dataGaLocation":1258},"https://docs.gitlab.com/ja-jp/","docs",{"text":1473,"config":1474},"GitLab University",{"href":1475,"dataGaName":1476,"dataGaLocation":1258},"https://university.gitlab.com/","university",{"text":1478,"config":1479},"技術デモ",{"href":1480,"dataGaName":1481,"dataGaLocation":1258},"/ja-jp/gitlab-technical-demo-series/","demo series",{"text":1483,"config":1484},"インタラクティブデモ",{"href":1485,"dataGaName":1486,"dataGaLocation":1258},"/ja-jp/demo-hub/","demo hub",{"text":1488,"config":1489},"GitLabサービス",{"href":1490,"dataGaName":1491,"dataGaLocation":1258},"/ja-jp/services/","services",{"title":1493,"items":1494},"つなげる",[1495,1500,1505,1510,1515],{"text":1496,"config":1497},"ブログ",{"href":1498,"dataGaName":1499,"dataGaLocation":1258},"/ja-jp/blog/","blog",{"text":1501,"config":1502},"コミュニティ",{"href":1503,"dataGaName":1504,"dataGaLocation":1258},"/community/","community",{"text":1506,"config":1507},"お客様事例",{"href":1508,"dataGaName":1509,"dataGaLocation":1258},"/ja-jp/customers/","customers",{"text":1511,"config":1512},"パートナー",{"href":1513,"dataGaName":1514,"dataGaLocation":1258},"/ja-jp/partners/","partners",{"text":1516,"config":1517},"イベント",{"href":1518,"dataGaName":1519,"dataGaLocation":1258},"/events/","events",{"config":1521,"title":1522,"text":1523,"link":1524},{"background":1352,"textColor":1353},"GitLabの最新情報","最新の機能と改善点に関する情報をお届けします。",{"text":1525,"config":1526},"最新情報を読む",{"href":1527,"dataGaName":1528,"dataGaLocation":1258},"/ja-jp/whats-new/","whats new",{"text":1530,"config":1531,"menu":1533},"企業情報",{"dataNavLevelOne":1532},"company",{"type":1280,"columns":1534},[1535],{"items":1536},[1537,1542,1548,1553,1558,1563,1568,1573,1578],{"text":1538,"config":1539},"GitLabについて",{"href":1540,"dataGaName":1541,"dataGaLocation":1258},"/ja-jp/company/","about",{"text":1543,"config":1544,"footerGa":1547},"採用情報",{"href":1545,"dataGaName":1546,"dataGaLocation":1258},"/jobs/","jobs",{"dataGaName":1546},{"text":1549,"config":1550},"プレス",{"href":1551,"dataGaName":1552,"dataGaLocation":1258},"/press/","press",{"text":1554,"config":1555},"ハンドブック",{"href":1556,"dataGaName":1557,"dataGaLocation":1258},"https://handbook.gitlab.com/","handbook",{"text":1559,"config":1560},"経営陣",{"href":1561,"dataGaName":1562,"dataGaLocation":1258},"/company/team/e-group/","leadership",{"text":1564,"config":1565},"投資家向け情報",{"href":1566,"dataGaName":1567,"dataGaLocation":1258},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1569,"config":1570},"トラストセンター",{"href":1571,"dataGaName":1572,"dataGaLocation":1258},"/ja-jp/security/","trust center",{"text":1574,"config":1575},"AI Transparency Center",{"href":1576,"dataGaName":1577,"dataGaLocation":1258},"/ja-jp/ai-transparency-center/","ai transparency center",{"text":1579,"config":1580},"ニュースレター",{"href":1581,"dataGaName":1582,"dataGaLocation":1258},"/company/contact/#contact-forms","newsletter",{"text":1584,"config":1585,"menu":1586},"お問い合わせ",{"dataNavLevelOne":1532},{"type":1280,"columns":1587},[1588],{"items":1589},[1590,1595,1600],{"text":1591,"config":1592},"営業担当へのお問い合わせ",{"href":1593,"dataGaName":1594,"dataGaLocation":1258},"/ja-jp/sales/","talk to sales",{"text":1596,"config":1597},"サポートポータル",{"href":1598,"dataGaName":1599,"dataGaLocation":1258},"https://support.gitlab.com/hc/en-us","support portal",{"text":1601,"config":1602},"カスタマーポータル",{"href":1603,"dataGaName":1604,"dataGaLocation":1258},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1606,"login":1607,"suggestions":1614},"閉じる",{"text":1608,"link":1609},"リポジトリとプロジェクトを検索するには、次にログインします",{"text":1610,"config":1611},"GitLab.com",{"href":1272,"dataGaName":1612,"dataGaLocation":1613},"search login","search",{"text":1615,"default":1616},"提案",[1617,1620,1624,1626,1630,1634],{"text":1618,"config":1619},"GitLab Duo Agent Platform",{"href":1338,"dataGaName":1618,"dataGaLocation":1613},{"text":1621,"config":1622},"コード提案（AI）",{"href":1338,"dataGaName":1623,"dataGaLocation":1613},"Code Suggestions (AI)",{"text":1290,"config":1625},{"href":1292,"dataGaName":1290,"dataGaLocation":1613},{"text":1627,"config":1628},"GitLab on AWS",{"href":1629,"dataGaName":1627,"dataGaLocation":1613},"/ja-jp/partners/technology-partners/aws/",{"text":1631,"config":1632},"GitLab on Google Cloud",{"href":1633,"dataGaName":1631,"dataGaLocation":1613},"/ja-jp/partners/technology-partners/google-cloud-platform/",{"text":1635,"config":1636},"GitLabを選ぶ理由",{"href":1637,"dataGaName":1638,"dataGaLocation":1613},"/ja-jp/why-gitlab/","Why GitLab?",{"freeTrial":1640,"mobileIcon":1644,"desktopIcon":1649,"secondaryButton":1652},{"text":1260,"config":1641},{"href":1642,"dataGaName":1263,"dataGaLocation":1643},"https://gitlab.com/-/trials/new/","nav",{"altText":1645,"config":1646},"GitLabアイコン",{"src":1647,"dataGaName":1648,"dataGaLocation":1643},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1645,"config":1650},{"src":1651,"dataGaName":1648,"dataGaLocation":1643},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1653,"config":1654},"はじめに",{"href":1655,"dataGaName":1656,"dataGaLocation":1643},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/ja-jp/get-started/","get started",{"freeTrial":1658,"mobileIcon":1662,"desktopIcon":1664},{"text":1659,"config":1660},"GitLab Duoの詳細はこちら",{"href":1338,"dataGaName":1661,"dataGaLocation":1643},"gitlab duo",{"altText":1645,"config":1663},{"src":1647,"dataGaName":1648,"dataGaLocation":1643},{"altText":1645,"config":1665},{"src":1651,"dataGaName":1648,"dataGaLocation":1643},{"button":1667,"mobileIcon":1672,"desktopIcon":1674},{"text":1668,"config":1669},"/switch",{"href":1670,"dataGaName":1671,"dataGaLocation":1643},"#contact","switch",{"altText":1645,"config":1673},{"src":1647,"dataGaName":1648,"dataGaLocation":1643},{"altText":1645,"config":1675},{"src":1676,"dataGaName":1648,"dataGaLocation":1643},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1678,"mobileIcon":1683,"desktopIcon":1685},{"text":1679,"config":1680},"料金ページに戻る",{"href":1452,"dataGaName":1681,"dataGaLocation":1643,"icon":1682},"back to pricing","GoBack",{"altText":1645,"config":1684},{"src":1647,"dataGaName":1648,"dataGaLocation":1643},{"altText":1645,"config":1686},{"src":1651,"dataGaName":1648,"dataGaLocation":1643},{"title":1688,"titleMobile":1354,"button":1689,"config":1693},"GitLab Orbitが一般提供開始。エージェントの精度を高め、トークンコストを削減",{"text":1357,"config":1690},{"href":1359,"dataGaName":1691,"dataGaLocation":1692},"orbit-ga-banner","global-banner",{"layout":1694,"disabled":1236},"release",{"data":1696},{"text":1697,"config":1698,"items":1703,"minimal":1926},"GitはSoftware Freedom Conservancyの商標です。当社は「GitLab」をライセンスに基づいて使用しています",{"twitter":1699,"facebook":1700,"youtube":1701,"linkedin":1702},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1704,1751,1809,1851,1893],{"title":1705,"links":1706,"subMenu":1722},"価格",[1707,1712,1717],{"text":1708,"config":1709},"プランの表示",{"href":1452,"dataGaName":1710,"dataGaLocation":1711},"view plans","footer",{"text":1713,"config":1714},"Premiumを選ぶ理由",{"href":1715,"dataGaName":1716,"dataGaLocation":1711},"/ja-jp/pricing/premium/","why premium",{"text":1718,"config":1719},"Ultimateを選ぶ理由",{"href":1720,"dataGaName":1721,"dataGaLocation":1711},"/ja-jp/pricing/ultimate/","why ultimate",[1723],{"title":1584,"links":1724},[1725,1727,1729,1731,1736,1741,1746],{"text":1591,"config":1726},{"href":1593,"dataGaName":1268,"dataGaLocation":1711},{"text":1596,"config":1728},{"href":1598,"dataGaName":1599,"dataGaLocation":1711},{"text":1601,"config":1730},{"href":1603,"dataGaName":1604,"dataGaLocation":1711},{"text":1732,"config":1733},"ステータス",{"href":1734,"dataGaName":1735,"dataGaLocation":1711},"https://status.gitlab.com/","status",{"text":1737,"config":1738},"利用規約",{"href":1739,"dataGaName":1740,"dataGaLocation":1711},"/terms/","terms of use",{"text":1742,"config":1743},"プライバシーに関する声明",{"href":1744,"dataGaName":1745,"dataGaLocation":1711},"/ja-jp/privacy/","privacy statement",{"text":1747,"config":1748},"Cookie設定",{"dataGaName":1749,"dataGaLocation":1711,"id":1750,"isOneTrustButton":158},"cookie preferences","ot-sdk-btn",{"title":1276,"links":1752,"subMenu":1767},[1753,1755,1757,1759,1761,1763],{"text":1282,"config":1754},{"href":1284,"dataGaName":1278,"dataGaLocation":1711},{"text":1336,"config":1756},{"href":1338,"dataGaName":1339,"dataGaLocation":1711},{"text":1290,"config":1758},{"href":1292,"dataGaName":1293,"dataGaLocation":1711},{"text":1341,"config":1760},{"href":1343,"dataGaName":1344,"dataGaLocation":1711},{"text":1323,"config":1762},{"href":1325,"dataGaName":1326,"dataGaLocation":1711},{"text":1764,"config":1765},"GitLabが選ばれる理由",{"href":1637,"dataGaName":1766,"dataGaLocation":1711},"why gitlab",[1768],{"title":1769,"links":1770},"トピック",[1771,1775,1780,1784,1789,1794,1799,1804],{"text":1290,"config":1772},{"href":1773,"dataGaName":1774,"dataGaLocation":1711},"/ja-jp/topics/ci-cd/","cicd",{"text":1776,"config":1777},"GitOps",{"href":1778,"dataGaName":1779,"dataGaLocation":1711},"/ja-jp/topics/gitops/","gitops",{"text":1287,"config":1781},{"href":1782,"dataGaName":1783,"dataGaLocation":1711},"/ja-jp/topics/devops/","devops",{"text":1785,"config":1786},"バージョン管理",{"href":1787,"dataGaName":1788,"dataGaLocation":1711},"/ja-jp/topics/version-control/","version control",{"text":1790,"config":1791},"DevSecOps",{"href":1792,"dataGaName":1793,"dataGaLocation":1711},"/ja-jp/topics/devsecops/","devsecops",{"text":1795,"config":1796},"クラウドネイティブ",{"href":1797,"dataGaName":1798,"dataGaLocation":1711},"/ja-jp/topics/cloud-native/","cloud native",{"text":1800,"config":1801},"コーディングのためのAI",{"href":1802,"dataGaName":1803,"dataGaLocation":1711},"/ja-jp/topics/devops/ai-for-coding/","ai for coding",{"text":1805,"config":1806},"エージェント型AI",{"href":1807,"dataGaName":1808,"dataGaLocation":1711},"/ja-jp/topics/agentic-ai/","agentic ai",{"title":1362,"links":1810},[1811,1813,1815,1817,1819,1822,1824,1826,1828,1830,1832,1834,1836,1839,1843,1847],{"text":1375,"config":1812},{"href":1377,"dataGaName":1378,"dataGaLocation":1711},{"text":1380,"config":1814},{"href":1382,"dataGaName":1383,"dataGaLocation":1711},{"text":1385,"config":1816},{"href":1387,"dataGaName":1388,"dataGaLocation":1711},{"text":1411,"config":1818},{"href":1413,"dataGaName":1414,"dataGaLocation":1711},{"text":1820,"config":1821},"公共機関",{"href":1418,"dataGaName":1419,"dataGaLocation":1711},{"text":1421,"config":1823},{"href":1423,"dataGaName":1424,"dataGaLocation":1711},{"text":1426,"config":1825},{"href":1428,"dataGaName":1429,"dataGaLocation":1711},{"text":1431,"config":1827},{"href":1433,"dataGaName":1434,"dataGaLocation":1711},{"text":1436,"config":1829},{"href":1438,"dataGaName":1439,"dataGaLocation":1711},{"text":1393,"config":1831},{"href":1395,"dataGaName":1396,"dataGaLocation":1711},{"text":1398,"config":1833},{"href":1400,"dataGaName":1401,"dataGaLocation":1711},{"text":1403,"config":1835},{"href":1405,"dataGaName":1406,"dataGaLocation":1711},{"text":1776,"config":1837},{"href":1838,"dataGaName":1779,"dataGaLocation":1711},"/ja-jp/solutions/gitops/",{"text":1840,"config":1841},"ソフトウェアコンポジション解析",{"href":1330,"dataGaName":1842,"dataGaLocation":1711},"software composition analysis",{"text":1844,"config":1845},"バリューストリーム管理",{"href":1348,"dataGaName":1846,"dataGaLocation":1711},"value stream management",{"text":1848,"config":1849},"すべてのソリューション",{"href":1369,"dataGaName":1850,"dataGaLocation":1711},"all solutions",{"title":1455,"links":1852},[1853,1858,1863,1866,1868,1870,1872,1874,1876,1878,1880,1882,1884,1886,1889],{"text":1854,"config":1855},"インストール",{"href":1856,"dataGaName":1857,"dataGaLocation":1711},"/ja-jp/install/","install",{"text":1859,"config":1860},"クイックスタートガイド",{"href":1861,"dataGaName":1862,"dataGaLocation":1711},"/ja-jp/get-started/","quick setup checklists",{"text":1468,"config":1864},{"href":1865,"dataGaName":1471,"dataGaLocation":1711},"https://docs.gitlab.com/ja-jp",{"text":1473,"config":1867},{"href":1475,"dataGaName":1476,"dataGaLocation":1711},{"text":1478,"config":1869},{"href":1480,"dataGaName":1481,"dataGaLocation":1711},{"text":1483,"config":1871},{"href":1485,"dataGaName":1486,"dataGaLocation":1711},{"text":1488,"config":1873},{"href":1490,"dataGaName":1491,"dataGaLocation":1711},{"text":1496,"config":1875},{"href":1498,"dataGaName":1499,"dataGaLocation":1711},{"text":1501,"config":1877},{"href":1503,"dataGaName":1504,"dataGaLocation":1711},{"text":1506,"config":1879},{"href":1508,"dataGaName":1509,"dataGaLocation":1711},{"text":1511,"config":1881},{"href":1513,"dataGaName":1514,"dataGaLocation":1711},{"text":1516,"config":1883},{"href":1518,"dataGaName":1519,"dataGaLocation":1711},{"text":1579,"config":1885},{"href":1581,"dataGaName":1582,"dataGaLocation":1711},{"text":1887,"config":1888},"最新リリース",{"href":1527,"dataGaName":1528,"dataGaLocation":1711},{"text":1890,"config":1891},"すべてのリソース",{"href":1462,"dataGaName":1892,"dataGaLocation":1711},"all resources",{"title":1894,"links":1895},"会社情報",[1896,1898,1900,1902,1904,1906,1908,1910,1912,1916,1921],{"text":1538,"config":1897},{"href":1540,"dataGaName":1532,"dataGaLocation":1711},{"text":1543,"config":1899},{"href":1545,"dataGaName":1546,"dataGaLocation":1711},{"text":1549,"config":1901},{"href":1551,"dataGaName":1552,"dataGaLocation":1711},{"text":1554,"config":1903},{"href":1556,"dataGaName":1557,"dataGaLocation":1711},{"text":1559,"config":1905},{"href":1561,"dataGaName":1562,"dataGaLocation":1711},{"text":1564,"config":1907},{"href":1566,"dataGaName":1567,"dataGaLocation":1711},{"text":1569,"config":1909},{"href":1571,"dataGaName":1572,"dataGaLocation":1711},{"text":1574,"config":1911},{"href":1576,"dataGaName":1577,"dataGaLocation":1711},{"text":1913,"config":1914},"Sustainability",{"href":1915,"dataGaName":1913,"dataGaLocation":1711},"/sustainability/",{"text":1917,"config":1918},"ダイバーシティ、インクルージョン、ビロンギング（DIB）",{"href":1919,"dataGaName":1920,"dataGaLocation":1711},"/ja-jp/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1922,"config":1923},"現代奴隷制の透明性に関する声明",{"href":1924,"dataGaName":1925,"dataGaLocation":1711},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1927},[1928,1930,1932],{"text":1737,"config":1929},{"href":1739,"dataGaName":1740,"dataGaLocation":1711},{"text":1747,"config":1931},{"dataGaName":1749,"dataGaLocation":1711,"id":1750,"isOneTrustButton":158},{"text":1742,"config":1933},{"href":1744,"dataGaName":1745,"dataGaLocation":1711},[1935],{"id":1936,"title":7,"body":1234,"config":1937,"content":1939,"description":1234,"extension":1943,"meta":1944,"navigation":158,"path":1945,"seo":1946,"stem":1947,"__hash__":1948},"blogAuthors/en-us/blog/authors/patrick-steinhardt.yml",{"template":1938},"BlogAuthor",{"name":7,"config":1940},{"headshot":1941,"ctfId":1942},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749661952/Blog/Author%20Headshots/pks-gitlab-headshot.png","pksgitlab","yml",{},"/en-us/blog/authors/patrick-steinhardt",{},"en-us/blog/authors/patrick-steinhardt","SV9Yd_vW69UbvntDP-SEOV9NKT_VwUAj5nfftf2ElSw",[1950,1958,1966],{"title":1951,"description":1952,"heroImage":1953,"category":1230,"date":1954,"authors":1955,"slug":1957,"externalUrl":1234},"Git 2.56.0の新機能","最新のGitリリースにおける新機能と変更点を紹介します。git-history(1)の新しいdropサブコマンド、参照を変更できるようになったgit-refs(1)の新サブコマンド、git-replay(1)による履歴の直線化などを取り上げます。","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782732487/ztwgrvlolpifo01vj8qc.png","2026-09-28",[1956],"Karthik Nayak","whats-new-in-git-2-56-0",{"title":1959,"description":1960,"heroImage":1961,"category":1230,"date":1962,"authors":1963,"slug":1965,"externalUrl":1234},"GitLab AIハッカソン2026：受賞者発表","約7,000人の開発者がGitLab Duo Agent Platform上で600以上のAIエージェントとフローを構築したハッカソンの結果をご紹介。","https://res.cloudinary.com/about-gitlab-com/image/upload/v1776457632/llddiylsgwuze0u1rjks.png","2026-04-22",[1964],"Nick Veenhof","gitlab-ai-hackathon-2026-meet-the-winners",{"title":1967,"description":1968,"heroImage":1969,"category":1230,"date":1970,"authors":1971,"slug":1973,"externalUrl":1234},"git mergeコマンドの基本を徹底解説","この記事では、git mergeコマンドについてコマンドの基本的な使い方からリクエストコードまで解説します。","https://res.cloudinary.com/about-gitlab-com/image/upload/v1754287290/averr2ecwl01q2f9lknf.jpg","2025-08-04",[1972],"GitLab Team","git-merge-command-overview",{"header":1975,"text":1976,"button":1980,"disclaimer":1983},"無料の\n\n30日間のGitLabトライアルを開始\n",[1977,1978,1979],"GitLab Duo Agent Platformへのアクセス","GitLabの最も高度な機能を試す","AIで複雑なタスクを自動化する",{"text":1260,"config":1981},{"href":1982,"dataGaName":1263,"dataGaLocation":1499},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/ja-jp/blog/","クレジットカードなしでご登録いただけます。",{"header":1985,"blurb":1986,"button":1987,"secondaryButton":1991},"今すぐ開発をスピードアップ","DevSecOpsに特化したインテリジェントオーケストレーションプラットフォームで実現できることをご確認ください。\n",{"text":1260,"config":1988},{"href":1989,"dataGaName":1263,"dataGaLocation":1990},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/ja-jp/","feature",{"text":1584,"config":1992},{"href":1593,"dataGaName":1268,"dataGaLocation":1990},1794911807780]