一个 git 查询语言
Gitql
===============Gitql is a Git query language.
In a repository path...
See more here
⚠️ Gitql is my first golang project. If you are a beginner looking for using the project as a guideline (how to organise or make an idiomatic go code), I recommend you polyglot instead.
You can access the releases page and just grab the binary. If you want to compile itself just run go build ..
gitql "your query"
orgit ql "your query"
As an example, this is the commits table:
| commits |
|---|
| author |
| author_email |
| committer |
| committer_email |
| hash |
| date |
| message |
| full_message |
(see more tables here)
select hash, author, message from commits limit 3select hash, message from commits where 'hell' in full_message or 'Fuck' in full_messageselect hash, message, author_email from commits where author = 'cloudson'select date, message from commits where date < '2014-04-10'select message from commits where 'hell' in message order by date ascselect distinct author from commits where date < '2020-01-01'gitql or open an issue
Notes:
git log - it was created just for science! :sweat_smile:暂无开放 Issues,或尚未同步最近议题。