私はhttps://github.com/notatestuser/gift
ライブラリを使用していますが、ここに私が持っているものがあります:
gitCommit.tree().contents (err, gitTreeContents) ->
console.log gitTreeContents
これにより、ツリーの内容が得られます。これは、次のようなオブジェクトの配列です。
{ repo:
{ path: '/mygitrepo',
bare: false,
dot_git: '/mygitrepo/.git',
git:
{ [Function]
cmd: [Function],
streamCmd: [Function],
list_remotes: [Function],
refs: [Function] } },
id: 'ed38d79b10503a4e7e68910f37f387f24dedd5fa',
name: 'address.js',
mode: '100644' }
そこで2つ質問です。まず、それは何をid
指しているのですか?コミット社じゃないからツリーっぽいのかな?次に、その時点でファイルがどのように見えたかを確認するにはどうすればよいですか?
ありがとう