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リポジトリを使用していますが、ファイル(log-tree.cなど)の「非難」データを取得する必要があります。だから、私は次のコマンドを使用しています
git --git-dir=/home/gh/git/.git --work-tree=/home/gh/git blame log-tree.c
ただし、ファイルの最後のバージョンのデータが表示されているだけですが、そのファイルの各バージョンの「非難」情報を取得する必要があります。だから、どうすればそれを行うことができますか?
<rev>コマンドラインでa を指定することにより、「blame」出力が必要なリビジョンを指定できます。例えば:
<rev>
git blame HEAD^ log-tree.c
以前のリビジョンの Blame 出力が表示されます。この機能を使用して、ファイルの履歴バージョンの Blame 出力を取得できます。