Discover Packages
github.com/dallarosa/gitql
command
module
Version:
v0.0.0-...-5e4e770
Opens a new window with list of versions in this module.
Published: Apr 15, 2014
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Gitql
Gitql is a Git query language.
In a repository ...
See more here
Install
You need cmake (ubuntu: apt-get install cmake?)
go get -d github.com/cloudson/gitql
cd $GOPATH/src/github.com/cloudson/gitql
make
sudo make install
export LD_LIBRARY_PATH=$PWD/libgit2/install/lib I hate this!
Examples
gitql -q "your query"
Look the table of commits:
commits
author
author_email
committer
committer_email
hash
date
message
full_message
(see more tables here )
You can do:
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 (see issue #4 )
Questions?
gitql -h or open an issue
Notes:
Gitql dont wants kill git log 😅 . It was created just for science!!
It's read-only. Nothing about delete, insert or update commits 😝
The limit default is 10 rows
It's inspired by textql
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.