MCPcopy Index your code
hub / github.com/anatawa12/git-vrc

github.com/anatawa12/git-vrc @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
96 symbols 198 edges 12 files 11 documented · 11% updated 12mo agov0.1.0 · 2025-06-18★ 4210 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

%YAML

git-vrc

Git VRC は VRC のプロジェクトで発生する意味のない diff をへらすための git 拡張です。

ローカル環境でのみ意味のある値を .asset.prefab.unity ファイルから git の上でのみ削除します。

Installation

このツールはリリースされてませんが、 cargo を使用して以下のコマンドでインストール可能です。

このツールは zip ファイル、 linux と macos 向けに homebrew、 windows 向けに msi インストーラで公開する予定です。

# もし rust をインストールしていなければ、以下のリンクの通り rust をインストールしてください。
# https://www.rust-lang.org/tools/install
$ cargo install --locked --git 'https://github.com/anatawa12/git-vrc.git'

このツールを git にインストールするため、以下のコマンドを実行してください。

# もしこのツールをシステム全体(git config の --system と同等)にインストールしたい場合
$ sudo git vrc install --config --system
# もしこのツールをユーザー単位(git config の --global と同等)にインストールしたい場合
$ git vrc install --config --global

また、 .gitattributes をレポジトリに追加するため、以下のコマンドを実行してください。

$ cd /path/to/YourUnityProject
$ git vrc install --attributes
$ git add .gitattributes

または以下のような .gitattributes ファイルを作成してください。

*.asset filter=vrc eol=lf text=auto
*.prefab filter=vrc eol=lf text=auto
*.unity filter=vrc eol=lf text=auto

最後に、もしすでに unity のファイルを git にコミットしたことがある場合、 git に再 index してもらうため以下のコマンドを実行してください。

# レポジトリ内のファイルすべてを touch することで、 git に再 index してもらいます。
# all files in your repository to let git re-index files.
$ find . -type f -print0 | xargs -0 touch
# そしてコミットします
$ git commit -am "chore: start using git-vrc"

Additional configurations

Sorting elements in the file

unityyamlのファイル内の要素を fileid でソートすることができます。 unity-sort を attributes で set してください。

*.asset filter=vrc eol=lf text=auto unity-sort

Specifying the filter version to keep git-vrc in sync among repositories

git-vrc-filter-version 属性に数値を設定することで、古いバージョンの git-vrc の動作を使用したり、リポジトリがより新しいバージョンの git-vrc フィルタリングを使用している場合にエラーを発生させたりすることができます。

*.asset filter=vrc eol=lf text=auto git-vrc-filter-version=1

License

Apache License, Version 2.0 または MIT license のどちらかお好きな方でライセンスされています。

Core symbols most depended-on inside this repo

next_scalar
called by 16
src/clean/filter/context.rs
skip_next_value
called by 16
src/clean/filter/context.rs
next
called by 14
src/clean/filter/context.rs
write_until_current_token
called by 13
src/clean/filter/context.rs
skip_until_current_token
called by 11
src/clean/filter/context.rs
append_str
called by 11
src/clean/filter/context.rs
mapping
called by 6
src/clean/filter/context.rs
peek
called by 5
src/clean/filter/context.rs

Shape

Method 47
Function 33
Class 13
Enum 3

Languages

Rust100%

Modules by API surface

src/clean/filter/context.rs21 symbols
src/clean/filter/main.rs17 symbols
src/clean/mod.rs14 symbols
src/yaml.rs13 symbols
src/git.rs12 symbols
src/install.rs8 symbols
src/clean/filter/remove_components.rs4 symbols
src/uninstall.rs3 symbols
src/smudge.rs2 symbols
src/main.rs2 symbols

For agents

$ claude mcp add git-vrc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page