Re: [PATCH 1/6] hook: scaffolding for git-hook subcommand
- From
SZEDER Gábor <szeder.dev@gmail.com>
- Date
- Dec 12, 2019, 10:47 UTC
- Message-ID
- <20191212104701.GI6527@szeder.dev>
- In-Reply-To
- <20191210023335.49987-2-emilyshaffer@google.com>
On Mon, Dec 09, 2019 at 06:33:30PM -0800, Emily Shaffer wrote:
Show 18 quoted lines
> Introduce infrastructure for a new subcommand, git-hook, which will be > used to ease config-based hook management. This command will handle > parsing configs to compose a list of hooks to run for a given event, as > well as adding or modifying hook configs in an interactive fashion. > > Signed-off-by: Emily Shaffer <emilyshaffer@google.com> > --- > .gitignore | 1 + > Documentation/git-hook.txt | 19 +++++++++++++++++++ > Makefile | 1 + > builtin.h | 1 + > builtin/hook.c | 21 +++++++++++++++++++++ > git.c | 1 + > t/t1360-config-based-hooks.sh | 11 +++++++++++ > 7 files changed, 55 insertions(+) > create mode 100644 Documentation/git-hook.txt > create mode 100644 builtin/hook.c > create mode 100755 t/t1360-config-based-hooks.sh
When adding a new command please don't forget the steps noted in 4ed5562925 (myfirstcontrib: add 'psuh' to command-list.txt, 2019-10-31) ;)
Show 7 quoted lines
> diff --git a/t/t1360-config-based-hooks.sh b/t/t1360-config-based-hooks.sh > new file mode 100755 > index 0000000000..34b0df5216 > --- /dev/null > +++ b/t/t1360-config-based-hooks.sh > @@ -0,0 +1,11 @@ > +#!/bin/bash
s/ba//
Show 13 quoted lines
> + > +test_description='config-managed multihooks, including git-hook command' > + > +. ./test-lib.sh > + > +test_expect_success 'git hook command does not crash' ' > + git hook > +' > + > +test_done > -- > 2.24.0.393.g34dc348eaf-goog >