• Stars
    star
    6,162
  • Rank 6,517 (Top 0.2 %)
  • Language
    Go
  • License
    MIT License
  • Created over 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

💊 A git query language

Gitql Go Report Card Open Source Helpers License MIT

Gitql is a Git query language.

In a repository path...

how to use

See more here

Reading the code

⚠️ 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.

Requirements

  • Go 1.16+

How to install

You can access the releases page and just grab the binary. If you want to compile itself just run go build ..

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
  • select distinct author from commits where date < '2020-01-01'

Questions?

gitql 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. 😐

More Repositories

1

awesome-php-jobs

🐘A curated list of companies using php
PHP
131
star
2

pizzeria

🍕Chart generator as a service
Go
89
star
3

treinando-unit-tests-php

Uma aplicação simples onde o objetivo é cobri-la de testes unitários
PHP
69
star
4

polyglot

What are your favorite programming languages? 👅
Go
54
star
5

from-dev-to-ops

🛠 A set of exercises for software engineers who would like to jump into devops technologies.
HCL
45
star
6

clojure-twitter-api

A simple crud api built with clojure for studying purposes
Clojure
34
star
7

Phartitura

🎶A dependency status viewer for composer
PHP
17
star
8

filhodanuvem

7
star
9

Gandalf

Gandalf is a (crazy) php library that handles functions
PHP
7
star
10

SolrSkeleton

Um esqueleto simples pra rodar o solr paralelo à sua aplicação
6
star
11

filhodanuvem-site

CSS
4
star
12

queroserprogramador

HTML
3
star
13

DataTablesBundle

A symfony package to create and manage (of easy way) tables using datatables jquery plugin with (mainly doctrine's) entities.
PHP
3
star
14

challenge-php-senior-2018

Esse projeto é a solução de um desafio técnico implementado em 2018 para vaga de Dev PHP Sênior
PHP
2
star
15

eraser

2
star
16

Saturno

Sábado é dia de colocar a casa em ordem, codar coisas (in)úteis, fazer testes, estudar de verdade.
Ruby
2
star
17

SimpleAnnotation

A small php project that insert semantic on classes using annotations
PHP
2
star
18

FARpa

A micro project that use GraphApi from facebook with activeRecord pattern on php.
PHP
1
star
19

Bocejo

Bocejo is a small cpp compiler that reads mini-java code and generate mips assembly
C++
1
star
20

7languages7weeks

Proposal exercises from the book seven languages in seven weeks.
1
star
21

cloudson.github.io.old

Tão alto como a honra
JavaScript
1
star