Skip to content

Commit 68bd8fb

Browse files
committed
Add tip: use verbose CLI flags for shared scripts
1 parent be83c57 commit 68bd8fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

book/08-customizing-git/sections/hooks.asc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,8 @@ The `post-receive` hook runs after the entire process is completed and can be us
124124
It takes the same stdin data as the `pre-receive` hook.
125125
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.
126126
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.
127+
128+
[TIP]
129+
====
130+
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.
131+
====

0 commit comments

Comments
 (0)