Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
git diff FILEin に相当する関数はありlibgit2ますか? 言い換えれば、作業ディレクトリ内の他のファイルを見なくても、単一ファイルの差分を効率的に取得するにはどうすればよいでしょうか?libgit2
git diff FILE
libgit2
git diff FILEインデックスに対して行った変更が表示されます。
git_diff_index_to_workdir()これは、libgit2関数を使用して実現できます。
git_diff_index_to_workdir()
この関数は、git_diff_options特に関心のあるパススペックまたはパススペックのリストを提供できるパラメーターとして構造体を受け入れます。
git_diff_options
これに関する詳細情報:
私は以下を取得しています:
Can't create table 'tempabcd' (errno: 22)
このエラーは、次のクエリ (簡略化) が数千回実行された後に発生します
DROP TABLE IF EXISTS tempabcd; CREATE TEMPORARY TABLE tempabcd (id