Re: Textconv

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: Textconv

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:56:21

Dmitry Ilin [off-list ref] writes:
I mean that our filter doesn't work with 'git show' and I need to
enable it for this command.

This is part of my git config file:

[filter "openssl"]
   smudge = openssl enc -d -base64 -aes-256-ecb -k 'abcde' 2>
/dev/null || cat
   clean = openssl enc -base64 -aes-256-ecb -S '12345' -k 'abcde'
[diff "openssl"]
   textconv = openssl enc -d -base64 -aes-256-ecb -k 'abcde' -in "$1"
2> /dev/null || cat "$1"
[merge]
   renormalize = true
Maybe a bad interaction between the [filter ...] section and the
[textconv ...] one. Can you run:

GIT_TRACE=true git show <some-relevant-commit>

to see what's going on?

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

Re: Textconv

From: Dmitry Ilin <hidden>
Date: 2016-06-15 22:56:21

I tried this command and I got following result:

trace: built-in: git 'show' 'a1bffde'
trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' 2> /dev/null || cat'
trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' 2> /dev/null || cat' 'openssl enc -d -base64 -aes-256-ecb 
-k '\''abcde'\'' 2> /dev/null || cat'
trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' -in $1 2> /dev/null || cat $1' '/tmp/CLPGPk_config.js'
trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' -in $1 2> /dev/null || cat $1 "$@"' 'openssl enc -d 
-base64 -aes-256-ecb -k '\''abcde'\'' -in $1 2> /dev/null || cat $1' 
'/tmp/CLPGPk_config.js'
trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' 2> /dev/null || cat'
trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' 2> /dev/null || cat' 'openssl enc -d -base64 -aes-256-ecb 
-k '\''abcde'\'' 2> /dev/null || cat'
trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' -in $1 2> /dev/null || cat $1' '/tmp/Uyc2Dj_config.js'
trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' -in $1 2> /dev/null || cat $1 "$@"' 'openssl enc -d 
-base64 -aes-256-ecb -k '\''abcde'\'' -in $1 2> /dev/null || cat $1' 
'/tmp/Uyc2Dj_config.js'
diff --git a/path/config.js b/path/config.js
index c4ad2d4..a67d13f 100644
--- a/path/config.js
+++ b/path/config.js

And also not encrypted data of my commit.


On 03/11/2013 02:41 PM, Matthieu Moy wrote:
Dmitry Ilin [off-list ref] writes:
quoted
I mean that our filter doesn't work with 'git show' and I need to
enable it for this command.

This is part of my git config file:

[filter "openssl"]
    smudge = openssl enc -d -base64 -aes-256-ecb -k 'abcde' 2>
/dev/null || cat
    clean = openssl enc -base64 -aes-256-ecb -S '12345' -k 'abcde'
[diff "openssl"]
    textconv = openssl enc -d -base64 -aes-256-ecb -k 'abcde' -in "$1"
2> /dev/null || cat "$1"
[merge]
    renormalize = true
Maybe a bad interaction between the [filter ...] section and the
[textconv ...] one. Can you run:

GIT_TRACE=true git show <some-relevant-commit>

to see what's going on?

Re: Textconv

From: Michael J Gruber <hidden>
Date: 2016-06-15 22:56:21

Dmitry Ilin venit, vidit, dixit 11.03.2013 12:30:
quoted hunk
I tried this command and I got following result:

trace: built-in: git 'show' 'a1bffde'
trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' 2> /dev/null || cat'
trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' 2> /dev/null || cat' 'openssl enc -d -base64 -aes-256-ecb 
-k '\''abcde'\'' 2> /dev/null || cat'
trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' -in $1 2> /dev/null || cat $1' '/tmp/CLPGPk_config.js'
trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' -in $1 2> /dev/null || cat $1 "$@"' 'openssl enc -d 
-base64 -aes-256-ecb -k '\''abcde'\'' -in $1 2> /dev/null || cat $1' 
'/tmp/CLPGPk_config.js'
trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' 2> /dev/null || cat'
trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' 2> /dev/null || cat' 'openssl enc -d -base64 -aes-256-ecb 
-k '\''abcde'\'' 2> /dev/null || cat'
trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' -in $1 2> /dev/null || cat $1' '/tmp/Uyc2Dj_config.js'
trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k 
'\''abcde'\'' -in $1 2> /dev/null || cat $1 "$@"' 'openssl enc -d 
-base64 -aes-256-ecb -k '\''abcde'\'' -in $1 2> /dev/null || cat $1' 
'/tmp/Uyc2Dj_config.js'
diff --git a/path/config.js b/path/config.js
index c4ad2d4..a67d13f 100644
--- a/path/config.js
+++ b/path/config.js

And also not encrypted data of my commit.


On 03/11/2013 02:41 PM, Matthieu Moy wrote:
quoted
Dmitry Ilin [off-list ref] writes:
quoted
I mean that our filter doesn't work with 'git show' and I need to
enable it for this command.

This is part of my git config file:

[filter "openssl"]
    smudge = openssl enc -d -base64 -aes-256-ecb -k 'abcde' 2>
/dev/null || cat
    clean = openssl enc -base64 -aes-256-ecb -S '12345' -k 'abcde'
[diff "openssl"]
    textconv = openssl enc -d -base64 -aes-256-ecb -k 'abcde' -in "$1"
2> /dev/null || cat "$1"
[merge]
    renormalize = true
Maybe a bad interaction between the [filter ...] section and the
[textconv ...] one. Can you run:

GIT_TRACE=true git show <some-relevant-commit>

to see what's going on?
"git show commit" uses textconv by default for the patch, but "git show
blob" does not. There's a series on the list which deals with textconv
for "grep" and "show blob", but I haven't had the time to polish it up.
I don't think it's cooking in pu yet, but I've been running with it
since. "running git with it", that is, not "running away with it" ;)

Michael
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help