5 ポイント 投稿者 xguru 2020-07-05 | まだコメントはありません。 | WhatsAppで共有
  • go-git を使ってRepoの内容をSQLiteのVirtual Tableとして実装

  • gitqlite "SELECT * from commits" のように使用可能

  • テーブルとフィールド :

→ commits : id, message, summary, author, commiter, parent_id..

→ files : commit_id, name, type, contents..

→ refs : name, type, hash

  • SELECT count(*) AS commits, SUM(additions) AS additions, SUM(deletions) AS deletions, author_email FROM commits GROUP BY author_email ORDER BY commits

まだコメントはありません。

まだコメントはありません。