From 68bd8fbeef7ef86f86800af627167cb9187eb26c Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Fri, 11 Sep 2020 21:59:16 +0200 Subject: [PATCH] Add tip: use verbose CLI flags for shared scripts --- book/08-customizing-git/sections/hooks.asc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/book/08-customizing-git/sections/hooks.asc b/book/08-customizing-git/sections/hooks.asc index fa80387aa..a0140c019 100644 --- a/book/08-customizing-git/sections/hooks.asc +++ b/book/08-customizing-git/sections/hooks.asc @@ -124,3 +124,8 @@ The `post-receive` hook runs after the entire process is completed and can be us It takes the same stdin data as the `pre-receive` hook. Examples include emailing a list, notifying a continuous integration server, or updating a ticket-tracking system – you can even parse the commit messages to see if any tickets need to be opened, modified, or closed. This script can't stop the push process, but the client doesn't disconnect until it has completed, so be careful if you try to do anything that may take a long time. + +[TIP] +==== +If you're writing a script/hook that others will need to read, prefer the long versions of command-line flags; six months from now you'll thank us. +====