Re: [git-users] Post-checkout hook command line arguments

2022-09-22 Thread Konstantin Khomoutov
On Thu, Sep 22, 2022 at 12:38:16PM +0300, Konstantin Khomoutov wrote: > > > .git/config: > > > > > > [filter "crypt"] > > > clean = openssl enc -pbkdf2 -iter 1 -aes-256-cbc -in %f && > > > shred %f > > > smudge = openssl enc -d -pbkdf2 -iter 1 -aes-256-cbc > > >

Re: [git-users] Post-checkout hook command line arguments

2022-09-22 Thread Konstantin Khomoutov
On Wed, Sep 21, 2022 at 11:22:19PM -0700, Ronny Forberger wrote: > > I solved it like this: > > > > .git/config: > > > > [filter "crypt"] > > clean = openssl enc -pbkdf2 -iter 1 -aes-256-cbc -in %f && > > shred %f > > smudge = openssl enc -d -pbkdf2 -iter 1 -aes-256-cbc >

Re: [git-users] Post-checkout hook command line arguments

2022-09-22 Thread Ronny Forberger
But I still have a problem: The clean filter seems to be run on git pull as well. Any ideas how to bypass this? On Thursday, September 22, 2022 at 4:10:42 AM UTC+2 Ronny Forberger wrote: > I solved it like this: > > .git/config: > > [filter "crypt"] > clean = openssl enc -pbkdf2 -iter

Re: [git-users] Post-checkout hook command line arguments

2022-09-21 Thread Ronny Forberger
I solved it like this: .git/config: [filter "crypt"] clean = openssl enc -pbkdf2 -iter 1 -aes-256-cbc -in %f && shred %f smudge = openssl enc -d -pbkdf2 -iter 1 -aes-256-cbc required .gitattributes * filter=crypt On Monday, September 12, 2022 at 9:37:11 PM

Re: [git-users] Post-checkout hook command line arguments

2022-09-12 Thread Ronny Forberger
OK, thanks, I will maybe give it a try. On Monday, September 12, 2022 at 6:25:41 PM UTC+2 Konstantin Khomoutov wrote: > On Mon, Sep 12, 2022 at 08:15:14AM -0700, Ronny Forberger wrote: > > [...] > > I am trying to implement some encryption function with ansible-vault > > into git hooks.

Re: [git-users] Post-checkout hook command line arguments

2022-09-12 Thread Konstantin Khomoutov
On Mon, Sep 12, 2022 at 08:15:14AM -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 [...] > I mean, I just want a list of files that are

Re: [git-users] Post-checkout hook command line arguments

2022-09-12 Thread DANNY ROY
Danny Roy 1225 st-Edgar Drummondville Québec Canada j2B-2W4 Envoyé de mon iPhone > Le 12 sept. 2022 à 11:15, Ronny Forberger > a écrit : > > I mean, I just want a list of files that are passed to the git

Re: [git-users] Post-checkout hook command line arguments

2022-09-12 Thread Ronny Forberger
I mean, I just want a list of files that are passed to the git checkout command, not any related to the history of a file or its state. On Monday, September 12, 2022 at 4:17:08 PM UTC+2 Konstantin Khomoutov wrote: > On Mon, Sep 12, 2022 at 06:42:15AM -0700, Ronny Forberger wrote: > > [...] > >

Re: [git-users] Post-checkout hook command line arguments

2022-09-12 Thread Konstantin Khomoutov
On Mon, Sep 12, 2022 at 06:42:15AM -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

Re: [git-users] Post-checkout hook command line arguments

2022-09-12 Thread Ronny Forberger
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

Re: [git-users] Post-checkout hook command line arguments

2022-09-12 Thread Konstantin Khomoutov
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

[git-users] Post-checkout hook command line arguments

2022-09-09 Thread Ronny Forberger
Hi, 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