Giter Site home page Giter Site logo

git_template's Introduction

A set of useful git hooks

These hooks automate some tasks with the help of git. For the moment, it is mostly hooks related to tools from the php ecosystem.

Documentation

Read the documentation to learn more about git template.

Contributing

see CONTRIBUTING.md

Credits

Inspired by Tim Pope

Build Status

Build Status

git_template's People

Contributors

edo78 avatar gezpage avatar greg0ire avatar lewisemm avatar metajiji avatar mikaelz avatar muschpusch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git_template's Issues

Allow use for Git submodules

Currently the template doesn't support submodules because relative directories are different.
It should be interesting to support submodules directly or by enabling an option.

Ask confirmation before running composer

Sometimes, I forget to push and I don't want composer to run. Or I just do some quick checkouts to master and then go back to my topic branch and I don't want composer to run.

Branch naming validation

I'm in love at first sight with this repo ❤️

My idea is to validate branch name against some pattern

so for example,
as I personally mostly use git flow.

Plus I want to see ticket number as a part of the branch
so I write this regex

^(feature|hotfix|bugfix|release)\/(ABC\-)\d{1,}\-[a-zA-Z]+

which will match this one

feature/ABC-3-asddas

There is no configuration file

I think I'm going to create configuration files so that plugins can be enabled/disabled on a project basis more easily

Composer hook does not seem to always be triggered

remote: Counting objects: 47, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 27 (delta 17), reused 0 (delta 0)
Unpacking objects: 100% (27/27), done.
From git.universcine.com:root/lekino-video_web
a807670..ef80357 master -> origin/master
Merge made by the 'recursive' strategy.
composer.lock | 160 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------
src/Uc/LeKinoBundle/Resources/public/css/account.sass | 30 ++++++++++++++++++++++++++----
2 files changed, 106 insertions(+), 84 deletions(-)

The "Merge" word is probably key here.

junkchecker checks all modified files

This script should check files that are in the staging area only (files that are going in the next commit). Internally, this script uses (in the most frequent case) git diff-index --name-status HEAD --, which seems to give the list of all modified files.

Run the doctrine hook less

At the moment, the doctrine hook is run very often. Problem : it relies on doctrine:schema:validate, which is very slow.

Prevent commit on parse error

A hook that prevents people from commiting when their file contains a syntax error. A php implementation should be written at first.

junkchecker hook should ignore symlinks

For the moment I get this message:

grep: web/jquery: est un dossier
grep: web/jquery: est un dossier
grep: web/jquery: est un dossier

which means the junkchecker checks web/jquery, which is a symlink, and... it checks it several times?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.