Discover Packages
github.com/filhodanuvem/gitql
command
module
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Feb 21, 2019
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Gitql
Gitql is a Git query language.
In a repository path...
See more here
Requirements
Install
go get -u -d github.com/cloudson/gitql
cd $GOPATH/src/github.com/cloudson/gitql
make
sudo make install
Examples
gitql "your query"
or
git 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 )
Example Commands
select hash, author, message from commits limit 3
select hash, message from commits where 'hell' in full_message or 'Fuck' in full_message
select 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 asc
Questions?
gitql -h
or open an issue
Notes:
Gitql doesn't want to kill git log
- it was created just for science! 😅
It's read-only - no deleting, inserting, or updating tables or commits. 😝
The default limit is 10 rows.
It's inspired by textql .
Gitql is a compiler/interpreter instead of just read a sqlite database with all commits, tags, etc. because we would need to sync the tables every time before run sql and we would have sqlite bases for each repository. 😐
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.