1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VSCode 拡張機能 Git Graph で初期ロードするコミット数を増やす方法

1
Posted at

方法

  • コマンドパレット(Ctrl+Shift+P / Cmd+Shift+P)で
    Preferences: Open Settings (JSON)」 を開きます。

  • 以下を追記します。

    "git-graph.repository.commits.initialLoad": 1000
    

    例えば 1000 にすれば、起動時に最新から 1000 コミットが読み込まれます。

補足

Visual Studio Code の拡張機能である Git Graph は、インストール先の package.json に既定値を定義しています。
場所はこちらです。

~/.vscode/extensions/mhutchie.git-graph-1.30.0/package.json

この中の git-graph.repository.commits.initialLoad セクションで初期ロードのデフォルト値が指定されています。

"git-graph.repository.commits.initialLoad": {
  "type": "number",
  "default": 300,
  "description": "Specifies the number of commits to initially load."
},

このデフォルト値を settings.json で上書きしたわけです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?