p7g / autohook Goto Github PK
View Code? Open in Web Editor NEWThis project forked from autohook/autohook
A very, very small Git hook manager with focus on automation
License: MIT License
This project forked from autohook/autohook
A very, very small Git hook manager with focus on automation
License: MIT License
The documentation in the readme is whatever was there when I forked this repository. That would normally be okay, but there have been extensive changes to the code base, so a lot of it is no longer accurate.
Currently, a failed script will immediately cause the program to stop. This may be desirable in some cases, but often times there will be multiple scripts that will fail. If the whole thing exits after the first failed script, it becomes difficult to fix all issues at once, and can result it a commit taking many attempts, which is pretty annoying.
This might be the kind of thing that should be configurable as a command-line argument, like --strategy fail-fast
or something.
There's no non-manual way of uninstalling the hooks that autohook installs. It would be nice to let users easily uninstall the hooks if they don't like them.
Using git checkout
commands in VSCode cause these directories not to be cleaned up, and a bunch of background processes don't get cleaned up:
sciyoshi 31015 0.0 0.0 14464 3848 tty2 S+ 00:00 0:00 git checkout -q -b dhall --no-track HEAD
sciyoshi 31016 0.0 0.0 10212 4020 tty2 S+ 00:00 0:00 \_ bash .git/hooks/post-checkout 7f32868953a15638f89da919d535d2c438c4541c 7f32868953a15638f89da919d535d2c438c4541c 1
sciyoshi 31031 0.0 0.0 10212 2564 tty2 S+ 00:00 0:00 \_ bash .git/hooks/post-checkout 7f32868953a15638f89da919d535d2c438c4541c 7f32868953a15638f89da919d535d2c438c4541c 1
sciyoshi 6506 0.0 0.0 312312 8376 tty2 S+ 00:05 0:00 git checkout -q
sciyoshi 6515 0.0 0.0 10212 4004 tty2 S+ 00:05 0:00 \_ bash .git/hooks/post-checkout dc38beb12103d57e8b9cb9bc53b5fcf735a18433 dc38beb12103d57e8b9cb9bc53b5fcf735a18433 1
sciyoshi 6530 0.0 0.0 10212 2552 tty2 S+ 00:05 0:00 \_ bash .git/hooks/post-checkout dc38beb12103d57e8b9cb9bc53b5fcf735a18433 dc38beb12103d57e8b9cb9bc53b5fcf735a18433 1
sciyoshi 6561 0.0 0.0 115704 8284 tty2 S+ 00:05 0:00 git checkout -q
sciyoshi 6570 0.0 0.0 10212 3804 tty2 S+ 00:05 0:00 \_ bash .git/hooks/post-checkout dc38beb12103d57e8b9cb9bc53b5fcf735a18433 dc38beb12103d57e8b9cb9bc53b5fcf735a18433 1
sciyoshi 6585 0.0 0.0 10212 2496 tty2 S+ 00:05 0:00 \_ bash .git/hooks/post-checkout dc38beb12103d57e8b9cb9bc53b5fcf735a18433 dc38beb12103d57e8b9cb9bc53b5fcf735a18433 1
sciyoshi 6613 0.0 0.0 312312 8244 tty2 S+ 00:05 0:00 git checkout -q
sciyoshi 6622 0.0 0.0 10212 3848 tty2 S+ 00:05 0:00 \_ bash .git/hooks/post-checkout dc38beb12103d57e8b9cb9bc53b5fcf735a18433 dc38beb12103d57e8b9cb9bc53b5fcf735a18433 1
sciyoshi 6637 0.0 0.0 10212 2600 tty2 S+ 00:05 0:00 \_ bash .git/hooks/post-checkout dc38beb12103d57e8b9cb9bc53b5fcf735a18433 dc38beb12103d57e8b9cb9bc53b5fcf735a18433 1
sciyoshi 6658 0.0 0.0 312312 8292 tty2 S+ 00:05 0:00 git checkout -q
sciyoshi 6669 0.0 0.0 10212 4096 tty2 S+ 00:05 0:00 \_ bash .git/hooks/post-checkout dc38beb12103d57e8b9cb9bc53b5fcf735a18433 dc38beb12103d57e8b9cb9bc53b5fcf735a18433 1
sciyoshi 6684 0.0 0.0 10212 2608 tty2 S+ 00:05 0:00 \_ bash .git/hooks/post-checkout dc38beb12103d57e8b9cb9bc53b5fcf735a18433 dc38beb12103d57e8b9cb9bc53b5fcf735a18433 1
sciyoshi 30193 0.0 0.0 8860 924 pts/3 S+ 09:16 0:00 \_ grep --color=auto git
pre-commit does this, and I think it makes sense.
Absolute links aren't ideal for use in a shared repository.
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.