These hooks automate some tasks with the help of git. For the moment, it is mostly hooks related to tools from the php ecosystem.
Read the documentation to learn more about git template.
see CONTRIBUTING.md
Inspired by Tim Pope
Automating your workflow with git
Home Page: http://git-template.readthedocs.org/
License: GNU General Public License v3.0
These hooks automate some tasks with the help of git. For the moment, it is mostly hooks related to tools from the php ecosystem.
Read the documentation to learn more about git template.
see CONTRIBUTING.md
Inspired by Tim Pope
check the pull request. It's not the nicest way but i'm not sure if there is a better one.
This can slow down the rebasing process, and the user probably doesn't want to trigger the hooks for each step.
It should be perfectly okay to commit part of a file, even if another part of this file contains junk.
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.
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.
People should be able to specify something like docker exec myproject_appserver_1 /bin/bash -c 'cd /srv && app/console
as a console executable
If the message contains wip
, warn and prevent the push.
It looks like your project as well as git-started have many similar goals?
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
This would be an indirect way to run the incenteev post-install command. Since no command can be run interactively, warning is the best solution IMHO.
I think I'm going to create configuration files so that plugins can be enabled/disabled on a project basis more easily
For the moment, a bunch of useless stuff is copied in every repository, and that's messy.
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.
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.
At the moment, the doctrine hook is run very often. Problem : it relies on doctrine:schema:validate
, which is very slow.
A hook that prevents people from commiting when their file contains a syntax error. A php implementation should be written at first.
When the composer.json is modified, check it on pre-commit with c validate
.
I found this hook here https://github.com/s0enke/git-hooks/tree/master/phpcs-pre-commit but have not got it working correctly with the Symfony2 coding standards (yet).
Would be nice to integrate it into this project.
When someone else puts a var_dump in your codebase, and you remove it, junkchecker should remain silent.
Getting this message after rebasing:
fatal: '../composer.lock' is outside repository
This script would help people interactively enable and configure plugins.
When putting a large number of files under control, we probably don't want to wait too long
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?
Please use wc -l which should work on os X and linux. I will create a pull request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.