No, the parameters ($@) that are provided to the hook are not enough for me.

On Monday, September 12, 2022 at 3:06:33 PM UTC+2 Konstantin Khomoutov 
wrote:

> On Fri, Sep 09, 2022 at 07:56:56PM -0700, Ronny Forberger wrote:
>
> > I am trying to implement some encryption function with ansible-vault 
> into 
> > git hooks.
> > For decryption, I need the list of files passed on the command line to 
> git 
> > checkout command. I am using the post-checkout hook here.
> > I didn't find this information on the Internet.
> > 
> > My post-checkout hook currently looks like:
> > 
> > #!/bin/bash
> > set -eo pipefail
> > FILES=...
> > for f in $FILES; do
> > ansible-vault decrypt $f
> > done
> > 
> > How can I access the command line arguments passed to git checkout in 
> the 
> > post-checkout hook?
>
> You cannot, but are the three parameters parsed to this hook not enough?
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/ae1d6bae-8934-451e-9f9c-696fc741d4e6n%40googlegroups.com.

Reply via email to