[{"data":1,"prerenderedAt":1710},["ShallowReactive",2],{"/ja-jp/blog/what-s-new-in-git-2-50-0":3,"navigation-ja-jp":972,"banner-ja-jp":1405,"footer-ja-jp":1413,"blog-post-authors-ja-jp-Justin Tobler":1652,"blog-related-posts-ja-jp-what-s-new-in-git-2-50-0":1667,"blog-share-wrapper-ja-jp":1691,"next-steps-ja-jp":1701},{"id":4,"title":5,"authors":6,"body":8,"category":954,"date":955,"description":956,"extension":957,"externalUrl":958,"faq":958,"featured":384,"heroImage":959,"hidePromo":960,"meta":961,"navigation":384,"path":962,"seo":963,"slug":964,"stem":965,"tags":966,"template":970,"updatedDate":958,"__hash__":971},"blogPosts/ja-jp/blog/what-s-new-in-git-2-50-0.md","Git 2.50.0の新機能",[7],"Justin Tobler",{"type":9,"value":10,"toc":948},"minimark",[11,22,27,45,76,79,90,160,173,179,198,201,212,249,267,278,281,296,505,508,518,526,529,590,608,618,622,636,774,781,821,827,853,890,899,905,908,915,926,929,944],[12,13,14,15,21],"p",{},"Gitプロジェクトは最近、",[16,17,20],"a",{"href":18,"rel":19},"https://lore.kernel.org/git/xmqq1prj1umb.fsf@gitster.g/T/#u",[],"Gitバージョン2.50.0","をリリースしました。今回のリリースの注目すべきポイントをいくつかご紹介します。これには、GitLabのGitチームやより広範なGitコミュニティからのコントリビュートも含まれています。",[23,24,26],"h2",{"id":25},"新しいgit-diff-pairs1コマンド","新しいgit-diff-pairs(1)コマンド",[12,28,29,30,35,36,44],{},"差分は、すべてのコードレビューの中心となるもので、2つのリビジョン間で行われた\nすべての変更を表示します。GitLabでは、さまざまな場所で差分が表示されますが、最も\n一般的なのはマージリクエストの",[16,31,34],{"href":32,"rel":33},"https://docs.gitlab.com/ja-jp/user/project/merge_requests/changes/",[],"「変更」タブ","です。\nその裏側では、差分の生成に",[16,37,40],{"href":38,"rel":39},"https://git-scm.com/docs/git-diff",[],[41,42,43],"code",{},"git-diff(1)","が\n使われています。たとえば、以下のように使います。",[46,47,52],"pre",{"className":48,"code":49,"language":50,"meta":51,"style":51},"language-shell shiki shiki-themes github-light","$ git diff HEAD~1 HEAD\n","shell","",[41,53,54],{"__ignoreMap":51},[55,56,59,63,67,70,73],"span",{"class":57,"line":58},"line",1,[55,60,62],{"class":61},"s7eDp","$",[55,64,66],{"class":65},"sYBdl"," git",[55,68,69],{"class":65}," diff",[55,71,72],{"class":65}," HEAD~1",[55,74,75],{"class":65}," HEAD\n",[12,77,78],{},"このコマンドは、変更されたすべてのファイルの完全な差分を返します。ただし、リビジョン間で変更されたファイル数が非常に多い場合、スケーラビリティの課題が生じる可能性があります。GitLabのバックエンドでは、コマンドが自己設定されたタイムアウトに達してしまうこともあります。変更数が多い場合、\n差分の計算をより小さく扱いやすい単位に分割できる方法があれば、より効果的です。",[12,80,81,82,89],{},"この課題を解決する1つの方法は、\n",[16,83,86],{"href":84,"rel":85},"https://git-scm.com/docs/git-diff-tree",[],[41,87,88],{},"git-diff-tree(1)","を使って、\n変更されたすべてのファイルに関する情報を取得することです。",[46,91,93],{"className":48,"code":92,"language":50,"meta":51,"style":51},"$ git diff-tree -r -M --abbrev HEAD~ HEAD\n:100644 100644 c9adfed339 99acf81487 M      Documentation/RelNotes/2.50.0.adoc\n:100755 100755 1047b8d11d 208e91a17f M      GIT-VERSION-GEN\n",[41,94,95,119,140],{"__ignoreMap":51},[55,96,97,99,101,104,108,111,114,117],{"class":57,"line":58},[55,98,62],{"class":61},[55,100,66],{"class":65},[55,102,103],{"class":65}," diff-tree",[55,105,107],{"class":106},"sYu0t"," -r",[55,109,110],{"class":106}," -M",[55,112,113],{"class":106}," --abbrev",[55,115,116],{"class":65}," HEAD~",[55,118,75],{"class":65},[55,120,122,125,128,131,134,137],{"class":57,"line":121},2,[55,123,124],{"class":61},":100644",[55,126,127],{"class":106}," 100644",[55,129,130],{"class":65}," c9adfed339",[55,132,133],{"class":65}," 99acf81487",[55,135,136],{"class":65}," M",[55,138,139],{"class":65},"      Documentation/RelNotes/2.50.0.adoc\n",[55,141,143,146,149,152,155,157],{"class":57,"line":142},3,[55,144,145],{"class":61},":100755",[55,147,148],{"class":106}," 100755",[55,150,151],{"class":65}," 1047b8d11d",[55,153,154],{"class":65}," 208e91a17f",[55,156,136],{"class":65},[55,158,159],{"class":65},"      GIT-VERSION-GEN\n",[12,161,162,163,168,169,172],{},"Gitはこの出力を",[16,164,167],{"href":165,"rel":166},"https://git-scm.com/docs/git-diff-tree#_raw_output_format",[],"「raw」フォーマット","と呼んでいます。\n簡単に言えば、出力の各行にはファイルのペアと、\nそれらの間で何が変更されたかを示すメタデータが表示されます。大規模な変更に対して\n「パッチ」形式の出力を生成する方法と比べて、\nこの処理は比較的高速な上、すべての変更の概要を把握できます。また、このコマンドでは、",[41,170,171],{},"-M","フラグを付けることでリネーム検出を有効にし、変更がファイルのリネームによるものかどうかを判別することもできます。",[12,174,175,176,178],{},"この情報を使えば、",[41,177,43],{},"を使って各ファイルペアの差分を\n個別にコンピューティングすることができます。たとえば、以下のようにblob IDを\n直接指定することも可能です。",[46,180,182],{"className":48,"code":181,"language":50,"meta":51,"style":51},"$ git diff 1047b8d11de767d290170979a9a20de1f5692e26 208e91a17f04558ca66bc19d73457ca64d5385f\n",[41,183,184],{"__ignoreMap":51},[55,185,186,188,190,192,195],{"class":57,"line":58},[55,187,62],{"class":61},[55,189,66],{"class":65},[55,191,69],{"class":65},[55,193,194],{"class":65}," 1047b8d11de767d290170979a9a20de1f5692e26",[55,196,197],{"class":65}," 208e91a17f04558ca66bc19d73457ca64d5385f\n",[12,199,200],{},"この処理は、各ファイルペアごとに繰り返すことができますが、\n個別のファイル差分ごとにGitプロセスを立ち上げるのは、あまり効率的ではありません。\nさらに、blob IDを使った場合、変更ステータスやファイルモードといった、\n親ツリーオブジェクトに格納されているコンテキスト情報が差分から失われてしまいます。\n本当に必要なのは、「raw」なファイルペア情報を元に、\n対応するパッチ出力を生成する仕組みです。",[12,202,203,204,211],{},"バージョン2.50から、Gitに新しい組み込みコマンド\n",[16,205,208],{"href":206,"rel":207},"https://git-scm.com/docs/git-diff-pairs",[],[41,209,210],{},"git-diff-pairs(1)","が追加されました。このコマンドは、\n標準入力（stdin）から「raw」形式のファイルペア情報を受け取り、どのパッチを出力すべきかを正確に判断します。以下の例は、\nこのコマンドの使用方法を示しています。",[46,213,215],{"className":48,"code":214,"language":50,"meta":51,"style":51},"$ git diff-tree -r -z -M HEAD~ HEAD | git diff-pairs -z\n",[41,216,217],{"__ignoreMap":51},[55,218,219,221,223,225,227,230,232,234,237,241,243,246],{"class":57,"line":58},[55,220,62],{"class":61},[55,222,66],{"class":65},[55,224,103],{"class":65},[55,226,107],{"class":106},[55,228,229],{"class":106}," -z",[55,231,110],{"class":106},[55,233,116],{"class":65},[55,235,236],{"class":65}," HEAD",[55,238,240],{"class":239},"sD7c4"," |",[55,242,66],{"class":61},[55,244,245],{"class":65}," diff-pairs",[55,247,248],{"class":106}," -z\n",[12,250,251,252,254,255,257,258,260,261,266],{},"このように使用した場合、出力結果は",[41,253,43],{},"を使った場合と同じになります。\nパッチ出力を生成する専用コマンドを分けることで、\n",[41,256,88],{},"から得られた「raw」出力を、より小さなファイルペアのバッチに分割し、それぞれを別々の\n",[41,259,210],{},"プロセスにフィードすることができます。これにより、差分を一度にすべてコンピューティングする必要がなくなるため、\n先に挙げたスケーラビリティの課題が解決されます。今後のGitLabリリースでは、\nこの仕組みの応用により、\n特に変更量が多い場合における差分生成のパフォーマンス向上が\n期待されます。この変更についての詳細は、該当する\n",[16,262,265],{"href":263,"rel":264},"https://lore.kernel.org/git/20250228213346.1335224-1-jltobler@gmail.com/",[],"メーリングリストのスレッド","をご覧ください。",[12,268,269],{},[270,271,272,273,277],"em",{},"このプロジェクトは",[16,274,7],{"href":275,"rel":276},"https://gitlab.com/justintobler",[],"が主導しました。",[23,279,280],{"id":280},"参照更新の一括処理",[12,282,283,284,291,292,295],{},"Gitには、参照を更新するための",[16,285,288],{"href":286,"rel":287},"https://git-scm.com/docs/git-update-ref",[],[41,289,290],{},"git-update-ref(1)","\nコマンドが用意されています。このコマンドを",[41,293,294],{},"--stdin","フラグとともに使用すると、\n複数の参照を1つのトランザクションとしてまとめて更新できます。\nこれを行うには、各参照更新の指示を標準入力（stdin）で指定します。\nこの方法で参照を一括更新すると、アトミックな動作も実現できます。つまり、1つでも参照の更新に失敗した場合、\nトランザクション全体が中断され、\nどの参照も更新されません。以下は、この動作を示す例です。",[46,297,299],{"className":48,"code":298,"language":50,"meta":51,"style":51},"# 3つの空のコミットと「foo」という名前のブランチを持つリポジトリを作成する\n$ git init\n$ git commit --allow-empty -m 1\n$ git commit --allow-empty -m 2\n$ git commit --allow-empty -m 3\n$ git branch foo\n\n# コミットIDを出力する\n$ git rev-list HEAD\ncf469bdf5436ea1ded57670b5f5a0797f72f1afc\n5a74cd330f04b96ce0666af89682d4d7580c354c\n5a6b339a8ebffde8c0590553045403dbda831518\n\n# トランザクションで新しい参照を作成し、既存の参照を更新しようとします。\n# 指定された古いオブジェクトIDが一致しないため、更新は失敗することが予想されます。\n$ git update-ref --stdin \u003C\u003CEOF\n> create refs/heads/bar cf469bdf5436ea1ded57670b5f5a0797f72f1afc\n> update refs/heads/foo 5a6b339a8ebffde8c0590553045403dbda831518 5a74cd330f04b96ce0666af89682d4d7580c354c\n> EOF\nfatal: cannot lock ref 'refs/heads/foo': is at cf469bdf5436ea1ded57670b5f5a0797f72f1afc but expected 5a74cd330f04b96ce0666af89682d4d7580c354c\n\n# 「bar」リファレンスは作成されませんでした。\n$ git switch bar\nfatal: invalid reference: bar\n",[41,300,301,307,316,334,350,366,379,386,392,404,410,416,422,427,433,439,458,464,470,476,482,487,493,499],{"__ignoreMap":51},[55,302,303],{"class":57,"line":58},[55,304,306],{"class":305},"sAwPA","# 3つの空のコミットと「foo」という名前のブランチを持つリポジトリを作成する\n",[55,308,309,311,313],{"class":57,"line":121},[55,310,62],{"class":61},[55,312,66],{"class":65},[55,314,315],{"class":65}," init\n",[55,317,318,320,322,325,328,331],{"class":57,"line":142},[55,319,62],{"class":61},[55,321,66],{"class":65},[55,323,324],{"class":65}," commit",[55,326,327],{"class":106}," --allow-empty",[55,329,330],{"class":106}," -m",[55,332,333],{"class":106}," 1\n",[55,335,337,339,341,343,345,347],{"class":57,"line":336},4,[55,338,62],{"class":61},[55,340,66],{"class":65},[55,342,324],{"class":65},[55,344,327],{"class":106},[55,346,330],{"class":106},[55,348,349],{"class":106}," 2\n",[55,351,353,355,357,359,361,363],{"class":57,"line":352},5,[55,354,62],{"class":61},[55,356,66],{"class":65},[55,358,324],{"class":65},[55,360,327],{"class":106},[55,362,330],{"class":106},[55,364,365],{"class":106}," 3\n",[55,367,369,371,373,376],{"class":57,"line":368},6,[55,370,62],{"class":61},[55,372,66],{"class":65},[55,374,375],{"class":65}," branch",[55,377,378],{"class":65}," foo\n",[55,380,382],{"class":57,"line":381},7,[55,383,385],{"emptyLinePlaceholder":384},true,"\n",[55,387,389],{"class":57,"line":388},8,[55,390,391],{"class":305},"# コミットIDを出力する\n",[55,393,395,397,399,402],{"class":57,"line":394},9,[55,396,62],{"class":61},[55,398,66],{"class":65},[55,400,401],{"class":65}," rev-list",[55,403,75],{"class":65},[55,405,407],{"class":57,"line":406},10,[55,408,409],{"class":61},"cf469bdf5436ea1ded57670b5f5a0797f72f1afc\n",[55,411,413],{"class":57,"line":412},11,[55,414,415],{"class":61},"5a74cd330f04b96ce0666af89682d4d7580c354c\n",[55,417,419],{"class":57,"line":418},12,[55,420,421],{"class":61},"5a6b339a8ebffde8c0590553045403dbda831518\n",[55,423,425],{"class":57,"line":424},13,[55,426,385],{"emptyLinePlaceholder":384},[55,428,430],{"class":57,"line":429},14,[55,431,432],{"class":305},"# トランザクションで新しい参照を作成し、既存の参照を更新しようとします。\n",[55,434,436],{"class":57,"line":435},15,[55,437,438],{"class":305},"# 指定された古いオブジェクトIDが一致しないため、更新は失敗することが予想されます。\n",[55,440,442,444,446,449,452,455],{"class":57,"line":441},16,[55,443,62],{"class":61},[55,445,66],{"class":65},[55,447,448],{"class":65}," update-ref",[55,450,451],{"class":106}," --stdin",[55,453,454],{"class":239}," \u003C\u003C",[55,456,457],{"class":65},"EOF\n",[55,459,461],{"class":57,"line":460},17,[55,462,463],{"class":65},"> create refs/heads/bar cf469bdf5436ea1ded57670b5f5a0797f72f1afc\n",[55,465,467],{"class":57,"line":466},18,[55,468,469],{"class":65},"> update refs/heads/foo 5a6b339a8ebffde8c0590553045403dbda831518 5a74cd330f04b96ce0666af89682d4d7580c354c\n",[55,471,473],{"class":57,"line":472},19,[55,474,475],{"class":65},"> EOF\n",[55,477,479],{"class":57,"line":478},20,[55,480,481],{"class":65},"fatal: cannot lock ref 'refs/heads/foo': is at cf469bdf5436ea1ded57670b5f5a0797f72f1afc but expected 5a74cd330f04b96ce0666af89682d4d7580c354c\n",[55,483,485],{"class":57,"line":484},21,[55,486,385],{"emptyLinePlaceholder":384},[55,488,490],{"class":57,"line":489},22,[55,491,492],{"class":65},"# 「bar」リファレンスは作成されませんでした。\n",[55,494,496],{"class":57,"line":495},23,[55,497,498],{"class":65},"$ git switch bar\n",[55,500,502],{"class":57,"line":501},24,[55,503,504],{"class":65},"fatal: invalid reference: bar\n",[12,506,507],{},"多くの参照を個別に更新する場合と比べて、一括で更新するほうがはるかに効率的です。\nこの方法は基本的にうまく機能しますが、\n一括更新による効率面のメリットを優先するために、\nリクエストされた参照更新の一部が失敗することを許容したい場合も\nあります。",[12,509,510,511,513,514,517],{},"今回のリリースで、",[41,512,290],{},"に新しく",[41,515,516],{},"--batch-updates","オプションが追加されました。\nこのオプションを使用すると、1つ以上の参照更新が失敗しても、処理を続行できるようになります。\nこのモードでは、個々の失敗が次の形式で出力されます。",[46,519,524],{"className":520,"code":522,"language":523,"meta":51},[521],"language-text","rejected SP (\u003Cold-oid> | \u003Cold-target>) SP (\u003Cnew-oid> | \u003Cnew-target>) SP \u003Crejection-reason> LF\n","text",[41,525,522],{"__ignoreMap":51},[12,527,528],{},"これにより、成功した参照の更新はそのまま進行しつつ、どの更新が拒否されたのか、\nまたその理由についての情報も得ることができます。前の例と同じリポジトリを\n使った例は以下のとおりです。",[46,530,532],{"className":48,"code":531,"language":50,"meta":51,"style":51},"# トランザクションで新しい参照を作成し、既存の参照を更新しようとします。\n$ git update-ref --stdin --batch-updates \u003C\u003CEOF\n> create refs/heads/bar cf469bdf5436ea1ded57670b5f5a0797f72f1afc\n> update refs/heads/foo 5a6b339a8ebffde8c0590553045403dbda831518 5a74cd330f04b96ce0666af89682d4d7580c354c\n> EOF\nrejected refs/heads/foo 5a6b339a8ebffde8c0590553045403dbda831518 5a74cd330f04b96ce0666af89682d4d7580c354c incorrect old value provided\n\n# 「foo」への更新が拒否されたにもかかわらず、「bar」参照が作成されました。\n$ git switch bar\nSwitched to branch 'bar'\n",[41,533,534,538,555,559,563,567,572,576,581,585],{"__ignoreMap":51},[55,535,536],{"class":57,"line":58},[55,537,432],{"class":305},[55,539,540,542,544,546,548,551,553],{"class":57,"line":121},[55,541,62],{"class":61},[55,543,66],{"class":65},[55,545,448],{"class":65},[55,547,451],{"class":106},[55,549,550],{"class":106}," --batch-updates",[55,552,454],{"class":239},[55,554,457],{"class":65},[55,556,557],{"class":57,"line":142},[55,558,463],{"class":65},[55,560,561],{"class":57,"line":336},[55,562,469],{"class":65},[55,564,565],{"class":57,"line":352},[55,566,475],{"class":65},[55,568,569],{"class":57,"line":368},[55,570,571],{"class":65},"rejected refs/heads/foo 5a6b339a8ebffde8c0590553045403dbda831518 5a74cd330f04b96ce0666af89682d4d7580c354c incorrect old value provided\n",[55,573,574],{"class":57,"line":381},[55,575,385],{"emptyLinePlaceholder":384},[55,577,578],{"class":57,"line":388},[55,579,580],{"class":65},"# 「foo」への更新が拒否されたにもかかわらず、「bar」参照が作成されました。\n",[55,582,583],{"class":57,"line":394},[55,584,498],{"class":65},[55,586,587],{"class":57,"line":406},[55,588,589],{"class":65},"Switched to branch 'bar'\n",[12,591,592,593,595,596,599,600,603,604,266],{},"今回は",[41,594,516],{},"オプションを使用したことで、\n更新処理が失敗しても参照の作成は成功しました。この一連のパッチは、\n",[41,597,598],{},"git-fetch(1)","や",[41,601,602],{},"git-receive-pack(1)","における今後の一括参照更新時の\nパフォーマンス改善の基盤となります。詳細については、該当する\n",[16,605,265],{"href":606,"rel":607},"https://lore.kernel.org/git/20250408085120.614893-1-karthik.188@gmail.com/",[],[12,609,610],{},[270,611,612,613,277],{},"このプロジェクトは、",[16,614,617],{"href":615,"rel":616},"https://gitlab.com/knayakgl",[],"Karthik Nayak",[23,619,621],{"id":620},"git-cat-file1の新しいフィルタオプション","git-cat-file(1)の新しいフィルタオプション",[12,623,624,631,632,635],{},[16,625,628],{"href":626,"rel":627},"https://git-scm.com/docs/git-cat-file",[],[41,629,630],{},"git-cat-file(1)","を使うと、\nリポジトリ内に含まれるすべてのオブジェクトの情報を\n",[41,633,634],{},"--batch–all-objects","オプションで出力できます。たとえば、以下のように実行します。",[46,637,639],{"className":48,"code":638,"language":50,"meta":51,"style":51},"# シンプルなリポジトリを設定します。\n$ git init\n$ echo foo >foo\n$ git add foo\n$ git commit -m init\n\n# 到達不能なオブジェクトを作成します。\n$ git commit --amend --no-edit\n\n# git-cat-file(1)を使用して、到達不能なオブジェクトを含むすべてのオブジェクトに関する情報を出力します。\n$ git cat-file --batch-all-objects --batch-check='%(objecttype) %(objectname)'\ncommit 0b07e71d14897f218f23d9a6e39605b466454ece\ntree 205f6b799e7d5c2524468ca006a0131aa57ecce7\nblob 257cc5642cb1a054f08cc83f2d943e56fd3ebe99\ncommit c999f781fd7214b3caab82f560ffd079ddad0115\n",[41,640,641,646,654,670,681,693,697,702,716,720,725,743,751,759,767],{"__ignoreMap":51},[55,642,643],{"class":57,"line":58},[55,644,645],{"class":305},"# シンプルなリポジトリを設定します。\n",[55,647,648,650,652],{"class":57,"line":121},[55,649,62],{"class":61},[55,651,66],{"class":65},[55,653,315],{"class":65},[55,655,656,658,661,664,667],{"class":57,"line":142},[55,657,62],{"class":61},[55,659,660],{"class":65}," echo",[55,662,663],{"class":65}," foo",[55,665,666],{"class":239}," >",[55,668,669],{"class":65},"foo\n",[55,671,672,674,676,679],{"class":57,"line":336},[55,673,62],{"class":61},[55,675,66],{"class":65},[55,677,678],{"class":65}," add",[55,680,378],{"class":65},[55,682,683,685,687,689,691],{"class":57,"line":352},[55,684,62],{"class":61},[55,686,66],{"class":65},[55,688,324],{"class":65},[55,690,330],{"class":106},[55,692,315],{"class":65},[55,694,695],{"class":57,"line":368},[55,696,385],{"emptyLinePlaceholder":384},[55,698,699],{"class":57,"line":381},[55,700,701],{"class":305},"# 到達不能なオブジェクトを作成します。\n",[55,703,704,706,708,710,713],{"class":57,"line":388},[55,705,62],{"class":61},[55,707,66],{"class":65},[55,709,324],{"class":65},[55,711,712],{"class":106}," --amend",[55,714,715],{"class":106}," --no-edit\n",[55,717,718],{"class":57,"line":394},[55,719,385],{"emptyLinePlaceholder":384},[55,721,722],{"class":57,"line":406},[55,723,724],{"class":305},"# git-cat-file(1)を使用して、到達不能なオブジェクトを含むすべてのオブジェクトに関する情報を出力します。\n",[55,726,727,729,731,734,737,740],{"class":57,"line":412},[55,728,62],{"class":61},[55,730,66],{"class":65},[55,732,733],{"class":65}," cat-file",[55,735,736],{"class":106}," --batch-all-objects",[55,738,739],{"class":106}," --batch-check=",[55,741,742],{"class":65},"'%(objecttype) %(objectname)'\n",[55,744,745,748],{"class":57,"line":418},[55,746,747],{"class":61},"commit",[55,749,750],{"class":65}," 0b07e71d14897f218f23d9a6e39605b466454ece\n",[55,752,753,756],{"class":57,"line":424},[55,754,755],{"class":61},"tree",[55,757,758],{"class":65}," 205f6b799e7d5c2524468ca006a0131aa57ecce7\n",[55,760,761,764],{"class":57,"line":429},[55,762,763],{"class":61},"blob",[55,765,766],{"class":65}," 257cc5642cb1a054f08cc83f2d943e56fd3ebe99\n",[55,768,769,771],{"class":57,"line":435},[55,770,747],{"class":61},[55,772,773],{"class":65}," c999f781fd7214b3caab82f560ffd079ddad0115\n",[12,775,776,777,780],{},"状況によっては、リポジトリ内のすべてのオブジェクトを検索し、\n特定の属性に基づいて一部のオブジェクトだけを出力したい場合があります。\nたとえば、コミットオブジェクトだけを表示したいときは、\n",[41,778,779],{},"grep(1)","を使って以下のように実行できます。",[46,782,784],{"className":48,"code":783,"language":50,"meta":51,"style":51},"$ git cat-file --batch-all-objects --batch-check='%(objecttype) %(objectname)' | grep ^commit\ncommit 0b07e71d14897f218f23d9a6e39605b466454ece\ncommit c999f781fd7214b3caab82f560ffd079ddad0115\n",[41,785,786,809,815],{"__ignoreMap":51},[55,787,788,790,792,794,796,798,801,803,806],{"class":57,"line":58},[55,789,62],{"class":61},[55,791,66],{"class":65},[55,793,733],{"class":65},[55,795,736],{"class":106},[55,797,739],{"class":106},[55,799,800],{"class":65},"'%(objecttype) %(objectname)'",[55,802,240],{"class":239},[55,804,805],{"class":61}," grep",[55,807,808],{"class":65}," ^commit\n",[55,810,811,813],{"class":57,"line":121},[55,812,747],{"class":61},[55,814,750],{"class":65},[55,816,817,819],{"class":57,"line":142},[55,818,747],{"class":61},[55,820,773],{"class":65},[12,822,823,824,826],{},"この方法でも目的は達成できますが、出力のフィルタリングには欠点があります。\nそれは、",[41,825,630],{},"が\nユーザーが関心を持っていないオブジェクトも含め、リポジトリ内のすべてのオブジェクトをたどらなければならない点です。これはかなり非効率です。",[12,828,829,830,832,833,836,837,840,841,844,845,848,849,852],{},"今回のリリースでは、",[41,831,630],{},"に",[41,834,835],{},"--filter","オプションが追加され、\n指定した条件に一致するオブジェクトだけを表示できるようになりました。これは",[41,838,839],{},"git-rev-list(1)","にある同名のオプションと似ていますが、\n対応しているフィルターの種類はその一部に限られています。\n対応しているフィルターは",[41,842,843],{},"blob:none","、",[41,846,847],{},"blob:limit=","および\n",[41,850,851],{},"object:type=","です。先ほどの例と同様に、オブジェクトはGitを使用して直接\n種類でフィルタリングできます。",[46,854,856],{"className":48,"code":855,"language":50,"meta":51,"style":51},"$ git cat-file --batch-all-objects --batch-check='%(objecttype) %(objectname)' --filter='object:type=commit'\ncommit 0b07e71d14897f218f23d9a6e39605b466454ece\ncommit c999f781fd7214b3caab82f560ffd079ddad0115\n",[41,857,858,878,884],{"__ignoreMap":51},[55,859,860,862,864,866,868,870,872,875],{"class":57,"line":58},[55,861,62],{"class":61},[55,863,66],{"class":65},[55,865,733],{"class":65},[55,867,736],{"class":106},[55,869,739],{"class":106},[55,871,800],{"class":65},[55,873,874],{"class":106}," --filter=",[55,876,877],{"class":65},"'object:type=commit'\n",[55,879,880,882],{"class":57,"line":121},[55,881,747],{"class":61},[55,883,750],{"class":65},[55,885,886,888],{"class":57,"line":142},[55,887,747],{"class":61},[55,889,773],{"class":65},[12,891,892,893,898],{},"Gitに処理を任せられるのは便利なだけでなく、オブジェクト数の多い大規模なリポジトリにおいては\n効率面のメリットも期待できます。\nリポジトリにビットマップインデックスがある場合、\nGitが特定の種類のオブジェクトを効率的に検索できるようになり、パックファイル全体をスキャンする必要がなくなるため、\n処理速度が大幅に向上します。\n",[16,894,897],{"href":895,"rel":896},"https://github.com/chromium/chromium.git",[],"Chromiumリポジトリ","で行われた\nベンチマークでは、こうした最適化による大きな改善が確認されています。",[46,900,903],{"className":901,"code":902,"language":523,"meta":51},[521],"Benchmark 1: git cat-file --batch-check --batch-all-objects --unordered --buffer --no-filter Time (mean ± σ):     82.806 s ±  6.363 s    [User: 30.956 s, System: 8.264 s] Range (min … max):   73.936 s … 89.690 s    10 runs\nBenchmark 2: git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=object:type=tag Time (mean ± σ):      20.8 ms ±   1.3 ms    [User: 6.1 ms, System: 14.5 ms] Range (min … max):    18.2 ms …  23.6 ms    127 runs\nBenchmark 3: git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=object:type=commit Time (mean ± σ):      1.551 s ±  0.008 s    [User: 1.401 s, System: 0.147 s] Range (min … max):    1.541 s …  1.566 s    10 runs\nBenchmark 4: git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=object:type=tree Time (mean ± σ):     11.169 s ±  0.046 s    [User: 10.076 s, System: 1.063 s] Range (min … max):   11.114 s … 11.245 s    10 runs\nBenchmark 5: git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=object:type=blob Time (mean ± σ):     67.342 s ±  3.368 s    [User: 20.318 s, System: 7.787 s] Range (min … max):   62.836 s … 73.618 s    10 runs\nBenchmark 6: git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=blob:none Time (mean ± σ):     13.032 s ±  0.072 s    [User: 11.638 s, System: 1.368 s] Range (min … max):   12.960 s … 13.199 s    10 runs\nSummary git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=object:type=tag 74.75 ± 4.61 times faster than git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=object:type=commit 538.17 ± 33.17 times faster than git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=object:type=tree 627.98 ± 38.77 times faster than git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=blob:none 3244.93 ± 257.23 times faster than git cat-file --batch-check --batch-all-objects --unordered --buffer --filter=object:type=blob 3990.07 ± 392.72 times faster than git cat-file --batch-check --batch-all-objects --unordered --buffer --no-filter ```\n\n興味深いことに、これらの結果からは、処理時間がパックファイル内の総オブジェクト数ではなく、\n指定された種類のオブジェクト数に比例して増減することが示されています。\n元のメーリングリストのスレッドは、\n[こちら](https://lore.kernel.org/git/20250221-pks-cat-file-object-type-filter-v1-0-0852530888e2@pks.im/)でご覧いただけます。\n\n_このプロジェクトは[Patrick Steinhardt](https://gitlab.com/pks-gitlab)が主導しました。_\n\n## バンドル生成時のパフォーマンスが向上\n\nGitには、指定した参照とそれに関連する到達可能なオブジェクトを含むリポジトリのアーカイブを生成する機能があります。\n具体的には、\n[`git-bundle(1)`](https://git-scm.com/docs/git-bundle)コマンドを使用します。この操作は、\nGitLabがリポジトリのバックアップを作成する際や、\n[バンドルURI](https://git-scm.com/docs/bundle-uri)メカニズムの一部としても使用されます。\n\n何百万もの参照を含む大規模なリポジトリでは、\nこの操作に数時間から数日かかることもあります。たとえば、GitLabのメインリポジトリ\n（[gitlab-org/gitlab](https://gitlab.com/gitlab-org/gitlab)）では、\nバックアップに約48時間を要していました。調査の結果、バンドルに重複した参照が含まれないようにチェックする処理において、\nパフォーマンスのボトルネックが存在することが判明しました。\nこの実装では、すべての参照をイテレーションして比較するために入れ子の`for`loopが使われており、\n時間計算量はO(N^2)となっていました。これは、\nリポジトリ内の参照数が増えるほど、処理性能が大きく低下する構造です。\n\n今回のリリースでは、この問題に対応し、\nネストされたloopをマップ型のデータ構造に置き換えることで、処理速度が大幅に向上しました。以下は、\n10万件の参照を含むリポジトリでバンドルを作成した際のパフォーマンス改善を\n示すベンチマーク結果です。\n\n```text\nBenchmark 1: bundle (refcount = 100000, revision = master) Time (mean ± σ):     14.653 s ±  0.203 s    [User: 13.940 s, System: 0.762 s] Range (min … max):   14.237 s … 14.920 s    10 runs\nBenchmark 2: bundle (refcount = 100000, revision = HEAD) Time (mean ± σ):      2.394 s ±  0.023 s    [User: 1.684 s, System: 0.798 s] Range (min … max):    2.364 s …  2.425 s    10 runs\nSummary bundle (refcount = 100000, revision = HEAD) ran 6.12 ± 0.10 times faster than bundle (refcount = 100000, revision = master) ```\n\n詳しくは、\n[GitLabがリポジトリのバックアップ時間を48時間から41分に短縮した方法](https://about.gitlab.com/blog/how-we-decreased-gitlab-repo-backup-times-from-48-hours-to-41-minutes/)を紹介するブログ記事をご覧ください。\n元のメーリングリストのスレッドは\n[こちら](https://lore.kernel.org/git/20250401-488-generating-bundles-with-many-references-has-non-linear-performance-v1-0-6d23b2d96557@gmail.com/)でご覧いただけます。\n\n_このプロジェクトは[Karthik Nayak](https://gitlab.com/knayakgl)が主導しました。_\n\n## バンドルURIのアンバンドルの改善\n\nGitの[バンドルURI](https://git-scm.com/docs/bundle-uri)メカニズムは、\nフェッチするバンドルの場所をクライアントに提供することで、クローンやフェッチの速度を\n向上させることを目的としています。クライアントがバンドルをダウンロードすると、\n`refs/heads/*`以下の参照が、その関連オブジェクトとともにバンドルから\nリポジトリにコピーされます。バンドルには`refs/tags/*`のように\n`refs/heads/*`以外の参照も含まれていることがありますが、\nこれらはクローン時にバンドルURIを使用する場合、単に無視されていました。\n\nGit 2.50ではこの制限が解除され、\nダウンロードされたバンドルに含まれる`refs/*`に一致するすべての参照がコピーされるようになりました。\nこの機能を実装した[Scott Chacon](https://github.com/schacon)さんは、\n[gitlab-org/gitlab-foss](https://gitlab.com/gitlab-org/gitlab-foss)をクローンした際の\n挙動の違いを紹介しています。\n\n```shell\n$ git-v2.49 clone --bundle-uri=gitlab-base.bundle https://gitlab.com/gitlab-org/gitlab-foss.git gl-2.49\nCloning into 'gl2.49'...\nremote: Enumerating objects: 1092703, done.\nremote: Counting objects: 100% (973405/973405), done.\nremote: Compressing objects: 100% (385827/385827), done.\nremote: Total 959773 (delta 710976), reused 766809 (delta 554276), pack-reused 0 (from 0)\nReceiving objects: 100% (959773/959773), 366.94 MiB | 20.87 MiB/s, done.\nResolving deltas: 100% (710976/710976), completed with 9081 local objects.\nChecking objects: 100% (4194304/4194304), done.\nChecking connectivity: 959668, done.\nUpdating files: 100% (59972/59972), done.\n\n$ git-v2.50 clone --bundle-uri=gitlab-base.bundle https://gitlab.com/gitlab-org/gitlab-foss.git gl-2.50\nCloning into 'gl-2.50'...\nremote: Enumerating objects: 65538, done.\nremote: Counting objects: 100% (56054/56054), done.\nremote: Compressing objects: 100% (28950/28950), done.\nremote: Total 43877 (delta 27401), reused 25170 (delta 13546), pack-reused 0 (from 0)\nReceiving objects: 100% (43877/43877), 40.42 MiB | 22.27 MiB/s, done.\nResolving deltas: 100% (27401/27401), completed with 8564 local objects.\nUpdating files: 100% (59972/59972), done.\n",[41,904,902],{"__ignoreMap":51},[12,906,907],{},"これらの結果を比較すると、Git 2.50はバンドル展開後に43,887個（40.42 MiB）のオブジェクトをフェッチしているのに対し、\nGit 2.49は合計で959,773個（366.94 MiB）のオブジェクトをフェッチしています。\nGit 2.50では、取得されるオブジェクト数が約95%、\nデータ量が約90%削減されており、クライアントとサーバーの双方にとってメリットがあります。\nサーバー側ではクライアントに送信するデータ量が大幅に減り、\nクライアント側でもダウンロードおよび展開するデータが少なくて済みます。Chaconさんの提供した例では、\nこれによって処理速度が25%向上しました。",[12,909,910,911,266],{},"詳細については、\n該当する",[16,912,265],{"href":913,"rel":914},"https://lore.kernel.org/git/pull.1897.git.git.1740489585344.gitgitgadget@gmail.com/",[],[12,916,917],{},[270,918,919,920,925],{},"この一連のパッチは、",[16,921,924],{"href":922,"rel":923},"https://github.com/schacon",[],"Scott Chacon","さんによって提供されました。",[23,927,928],{"id":928},"詳細はこちら",[12,930,931,932,937,938,943],{},"本記事でご紹介したのは、最新リリースにおいてGitLabと広範なGitコミュニティによって行われた\nコントリビュートのごく一部にすぎません。Gitプロジェクトの",[16,933,936],{"href":934,"rel":935},"https://lore.kernel.org/git/xmqq1prj1umb.fsf@gitster.g/",[],"公式リリースのお知らせ","では、\nさらに詳しい情報をご覧になれます。また、\n",[16,939,942],{"href":940,"rel":941},"https://about.gitlab.com/blog/tags/git/",[],"以前のGitリリースのブログ記事","もぜひご覧ください。GitLabチームメンバーによる過去の主なコントリビュートをご確認いただけます。",[945,946,947],"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 .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 .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}",{"title":51,"searchDepth":121,"depth":121,"links":949},[950,951,952,953],{"id":25,"depth":121,"text":26},{"id":280,"depth":121,"text":280},{"id":620,"depth":121,"text":621},{"id":928,"depth":121,"text":928},"open-source","2025-06-16","git-diff-pairs(1)コマンドや、参照の一括更新を行うためのgit-rev-list(1)オプションなど、GitLabのGitチームとGitコミュニティによるコントリビュートをご紹介します。","md",null,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749663087/Blog/Hero%20Images/git3-cover.png",false,{},"/ja-jp/blog/what-s-new-in-git-2-50-0",{"noIndex":960,"title":5,"description":956},"what-s-new-in-git-2-50-0","ja-jp/blog/what-s-new-in-git-2-50-0",[967,968,969],"git","open source","community","BlogPost","ZPDeElus-G-GNFLwJwV19EJc3Zi0gdQy61w8v-RqL_0",{"logo":973,"freeTrial":978,"sales":983,"login":988,"items":993,"search":1323,"minimal":1357,"duo":1375,"switchNav":1384,"pricingDeployment":1395},{"config":974},{"href":975,"dataGaName":976,"dataGaLocation":977},"/ja-jp/","gitlab logo","header",{"text":979,"config":980},"無料トライアルを開始",{"href":981,"dataGaName":982,"dataGaLocation":977},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/ja-jp&glm_content=default-saas-trial/","free trial",{"text":984,"config":985},"デモをリクエスト",{"href":986,"dataGaName":987,"dataGaLocation":977},"/ja-jp/request-a-demo/","sales",{"text":989,"config":990},"サインイン",{"href":991,"dataGaName":992,"dataGaLocation":977},"https://gitlab.com/users/sign_in/","sign in",[994,1080,1168,1173,1247,1301],{"text":995,"left":384,"config":996,"menu":998},"プラットフォーム",{"dataNavLevelOne":997},"platform",{"type":999,"link":1000,"columns":1004,"feature":1069},"lists",{"text":1001,"config":1002},"プラットフォームを詳しく見る",{"href":1003,"dataGaName":997,"dataGaLocation":977},"/ja-jp/platform/",[1005,1028,1051],{"title":1006,"items":1007},"DevOps",[1008,1013,1018,1023],{"text":1009,"config":1010},"CI/CD",{"href":1011,"dataGaLocation":977,"dataGaName":1012},"/ja-jp/solutions/continuous-integration/","ci/cd",{"text":1014,"config":1015},"ソースコード管理",{"href":1016,"dataGaLocation":977,"dataGaName":1017},"/ja-jp/solutions/source-code-management/","source code management",{"text":1019,"config":1020},"アジャイルデリバリー",{"href":1021,"dataGaLocation":977,"dataGaName":1022},"/ja-jp/solutions/agile-delivery/","agile delivery",{"text":1024,"config":1025},"アーティファクト管理",{"href":1026,"dataGaLocation":977,"dataGaName":1027},"/ja-jp/artifact-central/","artifact management",{"title":1029,"items":1030},"セキュリティとガバナンス",[1031,1036,1041,1046],{"text":1032,"config":1033},"アプリケーションセキュリティテスト",{"href":1034,"dataGaLocation":977,"dataGaName":1035},"/ja-jp/solutions/application-security-testing/","application security testing",{"text":1037,"config":1038},"ガバナンスとコンプライアンス",{"href":1039,"dataGaLocation":977,"dataGaName":1040},"/ja-jp/solutions/software-compliance/","governance and compliance",{"text":1042,"config":1043},"シークレット管理",{"href":1044,"dataGaLocation":977,"dataGaName":1045},"/ja-jp/gitlab-secrets-manager/","secrets management",{"text":1047,"config":1048},"サプライチェーンセキュリティ",{"href":1049,"dataGaLocation":977,"dataGaName":1050},"/ja-jp/solutions/supply-chain/","supply chain security",{"title":1052,"items":1053},"エージェント型AIとコンテキスト",[1054,1059,1064],{"text":1055,"config":1056},"Duo Agent Platform",{"href":1057,"dataGaLocation":977,"dataGaName":1058},"/ja-jp/gitlab-duo-agent-platform/","duo agent platform",{"text":1060,"config":1061},"Orbitコンテキストグラフ",{"href":1062,"dataGaLocation":977,"dataGaName":1063},"/ja-jp/gitlab-orbit/","orbit",{"text":1065,"config":1066},"可視性と測定",{"href":1067,"dataGaLocation":977,"dataGaName":1068},"/ja-jp/solutions/visibility-measurement/","visibility and measurement",{"config":1070,"title":1073,"text":1074,"link":1075},{"background":1071,"textColor":1072},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbitが一般提供開始","エージェントの精度向上とトークンコストの削減",{"text":1076,"config":1077},"発表を読む",{"href":1078,"dataGaName":1079,"dataGaLocation":977},"/ja-jp/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1081,"left":384,"config":1082,"menu":1084},"ソリューション",{"dataNavLevelOne":1083},"solutions",{"type":999,"link":1085,"columns":1089,"feature":1159},{"text":1086,"config":1087},"すべてのソリューションを表示",{"href":1088,"dataGaName":1083,"dataGaLocation":977},"/ja-jp/solutions/",[1090,1108,1126],{"title":1091,"items":1092},"成果",[1093,1098,1103],{"text":1094,"config":1095},"DevOpsモダナイゼーション",{"href":1096,"dataGaLocation":977,"dataGaName":1097},"/ja-jp/assessments/devops-modernization-assessment/","devops modernization",{"text":1099,"config":1100},"セキュリティモダナイゼーション",{"href":1101,"dataGaLocation":977,"dataGaName":1102},"/ja-jp/assessments/security-modernization-assessment/","security modernization",{"text":1104,"config":1105},"AIモダナイゼーション",{"href":1106,"dataGaLocation":977,"dataGaName":1107},"/ja-jp/assessments/ai-modernization-assessment/","ai modernization",{"title":1109,"items":1110},"規模別",[1111,1116,1121],{"text":1112,"config":1113},"エンタープライズ",{"href":1114,"dataGaLocation":977,"dataGaName":1115},"/ja-jp/enterprise/","enterprise",{"text":1117,"config":1118},"スモールビジネス",{"href":1119,"dataGaLocation":977,"dataGaName":1120},"/ja-jp/small-business/","small business",{"text":1122,"config":1123},"スタートアップ",{"href":1124,"dataGaLocation":977,"dataGaName":1125},"/ja-jp/solutions/startups/","startups",{"title":1127,"items":1128},"業界",[1129,1134,1139,1144,1149,1154],{"text":1130,"config":1131},"金融サービス",{"href":1132,"dataGaLocation":977,"dataGaName":1133},"/ja-jp/solutions/finance/","financial services",{"text":1135,"config":1136},"公共部門",{"href":1137,"dataGaLocation":977,"dataGaName":1138},"/ja-jp/solutions/public-sector/","public sector",{"text":1140,"config":1141},"通信",{"href":1142,"dataGaLocation":977,"dataGaName":1143},"/ja-jp/solutions/telecommunications/","telecommunications",{"text":1145,"config":1146},"自動車",{"href":1147,"dataGaLocation":977,"dataGaName":1148},"/ja-jp/solutions/automotive/","automotive",{"text":1150,"config":1151},"教育",{"href":1152,"dataGaLocation":977,"dataGaName":1153},"/ja-jp/solutions/education/","education",{"text":1155,"config":1156},"航空宇宙",{"href":1157,"dataGaLocation":977,"dataGaName":1158},"/ja-jp/solutions/aerospace/","aerospace",{"config":1160,"title":1161,"text":1162,"link":1163},{"background":1071,"textColor":1072},"GitLabのセキュリティ標準","セキュリティを犠牲にすることなく、ソフトウェアファクトリーを強化し、自律的なAIエージェントを実現する方法をご覧ください。",{"text":1164,"config":1165},"標準を見る",{"href":1166,"dataGaName":1167,"dataGaLocation":977},"/ja-jp/gitlab-security-standard/","gitlab security standard",{"text":1169,"config":1170},"料金",{"href":1171,"dataGaName":1172,"dataGaLocation":977,"dataNavLevelOne":1172},"/ja-jp/pricing/","pricing",{"text":1174,"config":1175,"menu":1177},"リソース",{"dataNavLevelOne":1176},"resources",{"type":999,"link":1178,"columns":1182,"feature":1238},{"text":1179,"config":1180},"すべてのリソースを表示",{"href":1181,"dataGaName":1176,"dataGaLocation":977},"/ja-jp/resources/",[1183,1211],{"title":1184,"items":1185},"検索する",[1186,1191,1196,1201,1206],{"text":1187,"config":1188},"製品ドキュメント",{"href":1189,"dataGaName":1190,"dataGaLocation":977},"https://docs.gitlab.com/ja-jp/","docs",{"text":1192,"config":1193},"GitLab University",{"href":1194,"dataGaName":1195,"dataGaLocation":977},"https://university.gitlab.com/","university",{"text":1197,"config":1198},"技術デモ",{"href":1199,"dataGaName":1200,"dataGaLocation":977},"/ja-jp/gitlab-technical-demo-series/","demo series",{"text":1202,"config":1203},"インタラクティブデモ",{"href":1204,"dataGaName":1205,"dataGaLocation":977},"/ja-jp/demo-hub/","demo hub",{"text":1207,"config":1208},"GitLabサービス",{"href":1209,"dataGaName":1210,"dataGaLocation":977},"/ja-jp/services/","services",{"title":1212,"items":1213},"つなげる",[1214,1219,1223,1228,1233],{"text":1215,"config":1216},"ブログ",{"href":1217,"dataGaName":1218,"dataGaLocation":977},"/ja-jp/blog/","blog",{"text":1220,"config":1221},"コミュニティ",{"href":1222,"dataGaName":969,"dataGaLocation":977},"/community/",{"text":1224,"config":1225},"お客様事例",{"href":1226,"dataGaName":1227,"dataGaLocation":977},"/ja-jp/customers/","customers",{"text":1229,"config":1230},"パートナー",{"href":1231,"dataGaName":1232,"dataGaLocation":977},"/ja-jp/partners/","partners",{"text":1234,"config":1235},"イベント",{"href":1236,"dataGaName":1237,"dataGaLocation":977},"/events/","events",{"config":1239,"title":1240,"text":1241,"link":1242},{"background":1071,"textColor":1072},"GitLabの最新情報","最新の機能と改善点に関する情報をお届けします。",{"text":1243,"config":1244},"最新情報を読む",{"href":1245,"dataGaName":1246,"dataGaLocation":977},"/ja-jp/whats-new/","whats new",{"text":1248,"config":1249,"menu":1251},"企業情報",{"dataNavLevelOne":1250},"company",{"type":999,"columns":1252},[1253],{"items":1254},[1255,1260,1266,1271,1276,1281,1286,1291,1296],{"text":1256,"config":1257},"GitLabについて",{"href":1258,"dataGaName":1259,"dataGaLocation":977},"/ja-jp/company/","about",{"text":1261,"config":1262,"footerGa":1265},"採用情報",{"href":1263,"dataGaName":1264,"dataGaLocation":977},"/jobs/","jobs",{"dataGaName":1264},{"text":1267,"config":1268},"プレス",{"href":1269,"dataGaName":1270,"dataGaLocation":977},"/press/","press",{"text":1272,"config":1273},"ハンドブック",{"href":1274,"dataGaName":1275,"dataGaLocation":977},"https://handbook.gitlab.com/","handbook",{"text":1277,"config":1278},"経営陣",{"href":1279,"dataGaName":1280,"dataGaLocation":977},"/company/team/e-group/","leadership",{"text":1282,"config":1283},"投資家向け情報",{"href":1284,"dataGaName":1285,"dataGaLocation":977},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1287,"config":1288},"トラストセンター",{"href":1289,"dataGaName":1290,"dataGaLocation":977},"/ja-jp/security/","trust center",{"text":1292,"config":1293},"AI Transparency Center",{"href":1294,"dataGaName":1295,"dataGaLocation":977},"/ja-jp/ai-transparency-center/","ai transparency center",{"text":1297,"config":1298},"ニュースレター",{"href":1299,"dataGaName":1300,"dataGaLocation":977},"/company/contact/#contact-forms","newsletter",{"text":1302,"config":1303,"menu":1304},"お問い合わせ",{"dataNavLevelOne":1250},{"type":999,"columns":1305},[1306],{"items":1307},[1308,1313,1318],{"text":1309,"config":1310},"営業担当へのお問い合わせ",{"href":1311,"dataGaName":1312,"dataGaLocation":977},"/ja-jp/sales/","talk to sales",{"text":1314,"config":1315},"サポートポータル",{"href":1316,"dataGaName":1317,"dataGaLocation":977},"https://support.gitlab.com/hc/en-us","support portal",{"text":1319,"config":1320},"カスタマーポータル",{"href":1321,"dataGaName":1322,"dataGaLocation":977},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1324,"login":1325,"suggestions":1332},"閉じる",{"text":1326,"link":1327},"リポジトリとプロジェクトを検索するには、次にログインします",{"text":1328,"config":1329},"GitLab.com",{"href":991,"dataGaName":1330,"dataGaLocation":1331},"search login","search",{"text":1333,"default":1334},"提案",[1335,1338,1342,1344,1348,1352],{"text":1336,"config":1337},"GitLab Duo Agent Platform",{"href":1057,"dataGaName":1336,"dataGaLocation":1331},{"text":1339,"config":1340},"コード提案（AI）",{"href":1057,"dataGaName":1341,"dataGaLocation":1331},"Code Suggestions (AI)",{"text":1009,"config":1343},{"href":1011,"dataGaName":1009,"dataGaLocation":1331},{"text":1345,"config":1346},"GitLab on AWS",{"href":1347,"dataGaName":1345,"dataGaLocation":1331},"/ja-jp/partners/technology-partners/aws/",{"text":1349,"config":1350},"GitLab on Google Cloud",{"href":1351,"dataGaName":1349,"dataGaLocation":1331},"/ja-jp/partners/technology-partners/google-cloud-platform/",{"text":1353,"config":1354},"GitLabを選ぶ理由",{"href":1355,"dataGaName":1356,"dataGaLocation":1331},"/ja-jp/why-gitlab/","Why GitLab?",{"freeTrial":1358,"mobileIcon":1362,"desktopIcon":1367,"secondaryButton":1370},{"text":979,"config":1359},{"href":1360,"dataGaName":982,"dataGaLocation":1361},"https://gitlab.com/-/trials/new/","nav",{"altText":1363,"config":1364},"GitLabアイコン",{"src":1365,"dataGaName":1366,"dataGaLocation":1361},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1363,"config":1368},{"src":1369,"dataGaName":1366,"dataGaLocation":1361},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1371,"config":1372},"はじめに",{"href":1373,"dataGaName":1374,"dataGaLocation":1361},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/ja-jp/get-started/","get started",{"freeTrial":1376,"mobileIcon":1380,"desktopIcon":1382},{"text":1377,"config":1378},"GitLab Duoの詳細はこちら",{"href":1057,"dataGaName":1379,"dataGaLocation":1361},"gitlab duo",{"altText":1363,"config":1381},{"src":1365,"dataGaName":1366,"dataGaLocation":1361},{"altText":1363,"config":1383},{"src":1369,"dataGaName":1366,"dataGaLocation":1361},{"button":1385,"mobileIcon":1390,"desktopIcon":1392},{"text":1386,"config":1387},"/switch",{"href":1388,"dataGaName":1389,"dataGaLocation":1361},"#contact","switch",{"altText":1363,"config":1391},{"src":1365,"dataGaName":1366,"dataGaLocation":1361},{"altText":1363,"config":1393},{"src":1394,"dataGaName":1366,"dataGaLocation":1361},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1396,"mobileIcon":1401,"desktopIcon":1403},{"text":1397,"config":1398},"料金ページに戻る",{"href":1171,"dataGaName":1399,"dataGaLocation":1361,"icon":1400},"back to pricing","GoBack",{"altText":1363,"config":1402},{"src":1365,"dataGaName":1366,"dataGaLocation":1361},{"altText":1363,"config":1404},{"src":1369,"dataGaName":1366,"dataGaLocation":1361},{"title":1406,"titleMobile":1073,"button":1407,"config":1411},"GitLab Orbitが一般提供開始。エージェントの精度を高め、トークンコストを削減",{"text":1076,"config":1408},{"href":1078,"dataGaName":1409,"dataGaLocation":1410},"orbit-ga-banner","global-banner",{"layout":1412,"disabled":960},"release",{"data":1414},{"text":1415,"config":1416,"items":1421,"minimal":1644},"GitはSoftware Freedom Conservancyの商標です。当社は「GitLab」をライセンスに基づいて使用しています",{"twitter":1417,"facebook":1418,"youtube":1419,"linkedin":1420},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1422,1469,1527,1569,1611],{"title":1423,"links":1424,"subMenu":1440},"価格",[1425,1430,1435],{"text":1426,"config":1427},"プランの表示",{"href":1171,"dataGaName":1428,"dataGaLocation":1429},"view plans","footer",{"text":1431,"config":1432},"Premiumを選ぶ理由",{"href":1433,"dataGaName":1434,"dataGaLocation":1429},"/ja-jp/pricing/premium/","why premium",{"text":1436,"config":1437},"Ultimateを選ぶ理由",{"href":1438,"dataGaName":1439,"dataGaLocation":1429},"/ja-jp/pricing/ultimate/","why ultimate",[1441],{"title":1302,"links":1442},[1443,1445,1447,1449,1454,1459,1464],{"text":1309,"config":1444},{"href":1311,"dataGaName":987,"dataGaLocation":1429},{"text":1314,"config":1446},{"href":1316,"dataGaName":1317,"dataGaLocation":1429},{"text":1319,"config":1448},{"href":1321,"dataGaName":1322,"dataGaLocation":1429},{"text":1450,"config":1451},"ステータス",{"href":1452,"dataGaName":1453,"dataGaLocation":1429},"https://status.gitlab.com/","status",{"text":1455,"config":1456},"利用規約",{"href":1457,"dataGaName":1458,"dataGaLocation":1429},"/terms/","terms of use",{"text":1460,"config":1461},"プライバシーに関する声明",{"href":1462,"dataGaName":1463,"dataGaLocation":1429},"/ja-jp/privacy/","privacy statement",{"text":1465,"config":1466},"Cookie設定",{"dataGaName":1467,"dataGaLocation":1429,"id":1468,"isOneTrustButton":384},"cookie preferences","ot-sdk-btn",{"title":995,"links":1470,"subMenu":1485},[1471,1473,1475,1477,1479,1481],{"text":1001,"config":1472},{"href":1003,"dataGaName":997,"dataGaLocation":1429},{"text":1055,"config":1474},{"href":1057,"dataGaName":1058,"dataGaLocation":1429},{"text":1009,"config":1476},{"href":1011,"dataGaName":1012,"dataGaLocation":1429},{"text":1060,"config":1478},{"href":1062,"dataGaName":1063,"dataGaLocation":1429},{"text":1042,"config":1480},{"href":1044,"dataGaName":1045,"dataGaLocation":1429},{"text":1482,"config":1483},"GitLabが選ばれる理由",{"href":1355,"dataGaName":1484,"dataGaLocation":1429},"why gitlab",[1486],{"title":1487,"links":1488},"トピック",[1489,1493,1498,1502,1507,1512,1517,1522],{"text":1009,"config":1490},{"href":1491,"dataGaName":1492,"dataGaLocation":1429},"/ja-jp/topics/ci-cd/","cicd",{"text":1494,"config":1495},"GitOps",{"href":1496,"dataGaName":1497,"dataGaLocation":1429},"/ja-jp/topics/gitops/","gitops",{"text":1006,"config":1499},{"href":1500,"dataGaName":1501,"dataGaLocation":1429},"/ja-jp/topics/devops/","devops",{"text":1503,"config":1504},"バージョン管理",{"href":1505,"dataGaName":1506,"dataGaLocation":1429},"/ja-jp/topics/version-control/","version control",{"text":1508,"config":1509},"DevSecOps",{"href":1510,"dataGaName":1511,"dataGaLocation":1429},"/ja-jp/topics/devsecops/","devsecops",{"text":1513,"config":1514},"クラウドネイティブ",{"href":1515,"dataGaName":1516,"dataGaLocation":1429},"/ja-jp/topics/cloud-native/","cloud native",{"text":1518,"config":1519},"コーディングのためのAI",{"href":1520,"dataGaName":1521,"dataGaLocation":1429},"/ja-jp/topics/devops/ai-for-coding/","ai for coding",{"text":1523,"config":1524},"エージェント型AI",{"href":1525,"dataGaName":1526,"dataGaLocation":1429},"/ja-jp/topics/agentic-ai/","agentic ai",{"title":1081,"links":1528},[1529,1531,1533,1535,1537,1540,1542,1544,1546,1548,1550,1552,1554,1557,1561,1565],{"text":1094,"config":1530},{"href":1096,"dataGaName":1097,"dataGaLocation":1429},{"text":1099,"config":1532},{"href":1101,"dataGaName":1102,"dataGaLocation":1429},{"text":1104,"config":1534},{"href":1106,"dataGaName":1107,"dataGaLocation":1429},{"text":1130,"config":1536},{"href":1132,"dataGaName":1133,"dataGaLocation":1429},{"text":1538,"config":1539},"公共機関",{"href":1137,"dataGaName":1138,"dataGaLocation":1429},{"text":1140,"config":1541},{"href":1142,"dataGaName":1143,"dataGaLocation":1429},{"text":1145,"config":1543},{"href":1147,"dataGaName":1148,"dataGaLocation":1429},{"text":1150,"config":1545},{"href":1152,"dataGaName":1153,"dataGaLocation":1429},{"text":1155,"config":1547},{"href":1157,"dataGaName":1158,"dataGaLocation":1429},{"text":1112,"config":1549},{"href":1114,"dataGaName":1115,"dataGaLocation":1429},{"text":1117,"config":1551},{"href":1119,"dataGaName":1120,"dataGaLocation":1429},{"text":1122,"config":1553},{"href":1124,"dataGaName":1125,"dataGaLocation":1429},{"text":1494,"config":1555},{"href":1556,"dataGaName":1497,"dataGaLocation":1429},"/ja-jp/solutions/gitops/",{"text":1558,"config":1559},"ソフトウェアコンポジション解析",{"href":1049,"dataGaName":1560,"dataGaLocation":1429},"software composition analysis",{"text":1562,"config":1563},"バリューストリーム管理",{"href":1067,"dataGaName":1564,"dataGaLocation":1429},"value stream management",{"text":1566,"config":1567},"すべてのソリューション",{"href":1088,"dataGaName":1568,"dataGaLocation":1429},"all solutions",{"title":1174,"links":1570},[1571,1576,1581,1584,1586,1588,1590,1592,1594,1596,1598,1600,1602,1604,1607],{"text":1572,"config":1573},"インストール",{"href":1574,"dataGaName":1575,"dataGaLocation":1429},"/ja-jp/install/","install",{"text":1577,"config":1578},"クイックスタートガイド",{"href":1579,"dataGaName":1580,"dataGaLocation":1429},"/ja-jp/get-started/","quick setup checklists",{"text":1187,"config":1582},{"href":1583,"dataGaName":1190,"dataGaLocation":1429},"https://docs.gitlab.com/ja-jp",{"text":1192,"config":1585},{"href":1194,"dataGaName":1195,"dataGaLocation":1429},{"text":1197,"config":1587},{"href":1199,"dataGaName":1200,"dataGaLocation":1429},{"text":1202,"config":1589},{"href":1204,"dataGaName":1205,"dataGaLocation":1429},{"text":1207,"config":1591},{"href":1209,"dataGaName":1210,"dataGaLocation":1429},{"text":1215,"config":1593},{"href":1217,"dataGaName":1218,"dataGaLocation":1429},{"text":1220,"config":1595},{"href":1222,"dataGaName":969,"dataGaLocation":1429},{"text":1224,"config":1597},{"href":1226,"dataGaName":1227,"dataGaLocation":1429},{"text":1229,"config":1599},{"href":1231,"dataGaName":1232,"dataGaLocation":1429},{"text":1234,"config":1601},{"href":1236,"dataGaName":1237,"dataGaLocation":1429},{"text":1297,"config":1603},{"href":1299,"dataGaName":1300,"dataGaLocation":1429},{"text":1605,"config":1606},"最新リリース",{"href":1245,"dataGaName":1246,"dataGaLocation":1429},{"text":1608,"config":1609},"すべてのリソース",{"href":1181,"dataGaName":1610,"dataGaLocation":1429},"all resources",{"title":1612,"links":1613},"会社情報",[1614,1616,1618,1620,1622,1624,1626,1628,1630,1634,1639],{"text":1256,"config":1615},{"href":1258,"dataGaName":1250,"dataGaLocation":1429},{"text":1261,"config":1617},{"href":1263,"dataGaName":1264,"dataGaLocation":1429},{"text":1267,"config":1619},{"href":1269,"dataGaName":1270,"dataGaLocation":1429},{"text":1272,"config":1621},{"href":1274,"dataGaName":1275,"dataGaLocation":1429},{"text":1277,"config":1623},{"href":1279,"dataGaName":1280,"dataGaLocation":1429},{"text":1282,"config":1625},{"href":1284,"dataGaName":1285,"dataGaLocation":1429},{"text":1287,"config":1627},{"href":1289,"dataGaName":1290,"dataGaLocation":1429},{"text":1292,"config":1629},{"href":1294,"dataGaName":1295,"dataGaLocation":1429},{"text":1631,"config":1632},"Sustainability",{"href":1633,"dataGaName":1631,"dataGaLocation":1429},"/sustainability/",{"text":1635,"config":1636},"ダイバーシティ、インクルージョン、ビロンギング（DIB）",{"href":1637,"dataGaName":1638,"dataGaLocation":1429},"/ja-jp/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1640,"config":1641},"現代奴隷制の透明性に関する声明",{"href":1642,"dataGaName":1643,"dataGaLocation":1429},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1645},[1646,1648,1650],{"text":1455,"config":1647},{"href":1457,"dataGaName":1458,"dataGaLocation":1429},{"text":1465,"config":1649},{"dataGaName":1467,"dataGaLocation":1429,"id":1468,"isOneTrustButton":384},{"text":1460,"config":1651},{"href":1462,"dataGaName":1463,"dataGaLocation":1429},[1653],{"id":1654,"title":7,"body":958,"config":1655,"content":1657,"description":958,"extension":1661,"meta":1662,"navigation":384,"path":1663,"seo":1664,"stem":1665,"__hash__":1666},"blogAuthors/en-us/blog/authors/justin-tobler.yml",{"template":1656},"BlogAuthor",{"name":7,"config":1658},{"headshot":1659,"ctfId":1660},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749664737/Blog/Author%20Headshots/james_tobler_headshot.png","5pnOIbNI1Sc5IFnReNHNtv","yml",{},"/en-us/blog/authors/justin-tobler",{},"en-us/blog/authors/justin-tobler","fZs0fJVrV3MQT0RHzrMvziLDriL7K4hf9Db4QlPsRvA",[1668,1675,1683],{"title":1669,"description":1670,"heroImage":1671,"category":954,"date":1672,"authors":1673,"slug":1674,"externalUrl":958},"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",[617],"whats-new-in-git-2-56-0",{"title":1676,"description":1677,"heroImage":1678,"category":954,"date":1679,"authors":1680,"slug":1682,"externalUrl":958},"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",[1681],"Nick Veenhof","gitlab-ai-hackathon-2026-meet-the-winners",{"title":1684,"description":1685,"heroImage":1686,"category":954,"date":1687,"authors":1688,"slug":1690,"externalUrl":958},"git mergeコマンドの基本を徹底解説","この記事では、git mergeコマンドについてコマンドの基本的な使い方からリクエストコードまで解説します。","https://res.cloudinary.com/about-gitlab-com/image/upload/v1754287290/averr2ecwl01q2f9lknf.jpg","2025-08-04",[1689],"GitLab Team","git-merge-command-overview",{"header":1692,"text":1693,"button":1697,"disclaimer":1700},"無料の\n\n30日間のGitLabトライアルを開始\n",[1694,1695,1696],"GitLab Duo Agent Platformへのアクセス","GitLabの最も高度な機能を試す","AIで複雑なタスクを自動化する",{"text":979,"config":1698},{"href":1699,"dataGaName":982,"dataGaLocation":1218},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/ja-jp/blog/","クレジットカードなしでご登録いただけます。",{"header":1702,"blurb":1703,"button":1704,"secondaryButton":1708},"今すぐ開発をスピードアップ","DevSecOpsに特化したインテリジェントオーケストレーションプラットフォームで実現できることをご確認ください。\n",{"text":979,"config":1705},{"href":1706,"dataGaName":982,"dataGaLocation":1707},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/ja-jp/","feature",{"text":1302,"config":1709},{"href":1311,"dataGaName":987,"dataGaLocation":1707},1794911812179]