{"thread":{"id":"33152","subject":"Textconv","startedAt":"2013-03-11T09:46:09Z","lastAt":"2013-03-11T14:40:20Z","messageCount":6,"participants":["Dmitry Ilin","Matthieu Moy","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"211031","messageId":"513DA7E1.7050206@mylovecompany.com","threadId":"33152","inReplyTo":null,"subject":"Textconv","fromName":"Dmitry Ilin","fromEmail":"dmitry@mylovecompany.com","sentAt":"2013-03-11T09:46:09Z","receivedAt":"2013-03-11T09:46:09Z","isPatch":false,"sender":{"key":"dmitry@mylovecompany.com","avatar":null},"body":"Hello!\n\nMost of GUI for Git using 'git show' command to show differences between \nversions. For example: WebStorm IDE. But for now there is no way to \nspecify text conversion command in git config for 'show' as it done for \n'diff'. It makes problems when we dealing with encrypted repositories.\n\nIs there any alternative way to configure git repository? Or if it \nimpossible will you implement such kind of feature?\n"},{"id":"211032","messageId":"vpqtxoicl2l.fsf@grenoble-inp.fr","threadId":"33152","inReplyTo":"513DA7E1.7050206@mylovecompany.com","subject":"Re: Textconv","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2013-03-11T10:00:50Z","receivedAt":"2013-03-11T10:00:50Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Dmitry Ilin <dmitry@mylovecompany.com> writes:\n\n> Hello!\n>\n> Most of GUI for Git using 'git show' command to show differences\n> between versions. For example: WebStorm IDE. But for now there is no\n> way to specify text conversion command in git config for 'show' as it\n> done for 'diff'.\n\nDo you mean, to enable it, or to disable it?\n\nBy default, \"git show\" does use the textconv filter to compute the diff,\nat least if you specified the textconv driver in your .gitattributes\nfile.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"211033","messageId":"513DB273.2090007@mylovecompany.com","threadId":"33152","inReplyTo":"vpqtxoicl2l.fsf@grenoble-inp.fr","subject":"Re: Textconv","fromName":"Dmitry Ilin","fromEmail":"dmitry@mylovecompany.com","sentAt":"2013-03-11T10:31:15Z","receivedAt":"2013-03-11T10:31:15Z","isPatch":false,"sender":{"key":"dmitry@mylovecompany.com","avatar":null},"body":"I mean that our filter doesn't work with 'git show' and I need to enable \nit for this command.\n\nThis is part of my git config file:\n\n[filter \"openssl\"]\n    smudge = openssl enc -d -base64 -aes-256-ecb -k 'abcde' 2> /dev/null \n|| cat\n    clean = openssl enc -base64 -aes-256-ecb -S '12345' -k 'abcde'\n[diff \"openssl\"]\n    textconv = openssl enc -d -base64 -aes-256-ecb -k 'abcde' -in \"$1\" \n2> /dev/null || cat \"$1\"\n[merge]\n    renormalize = true\n\n\nAnd content of '.git/info/attributes':\n\n* filter=openssl diff=openssl\n\n\nHow can I deal with it?\n\n\nOn 03/11/2013 02:00 PM, Matthieu Moy wrote:\n> Dmitry Ilin <dmitry@mylovecompany.com> writes:\n>\n>> Hello!\n>>\n>> Most of GUI for Git using 'git show' command to show differences\n>> between versions. For example: WebStorm IDE. But for now there is no\n>> way to specify text conversion command in git config for 'show' as it\n>> done for 'diff'.\n> Do you mean, to enable it, or to disable it?\n>\n> By default, \"git show\" does use the textconv filter to compute the diff,\n> at least if you specified the textconv driver in your .gitattributes\n> file.\n>\n"},{"id":"211034","messageId":"vpqd2v6b4n5.fsf@grenoble-inp.fr","threadId":"33152","inReplyTo":"513DB273.2090007@mylovecompany.com","subject":"Re: Textconv","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2013-03-11T10:41:02Z","receivedAt":"2013-03-11T10:41:02Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Dmitry Ilin <dmitry@mylovecompany.com> writes:\n\n> I mean that our filter doesn't work with 'git show' and I need to\n> enable it for this command.\n>\n> This is part of my git config file:\n>\n> [filter \"openssl\"]\n>    smudge = openssl enc -d -base64 -aes-256-ecb -k 'abcde' 2>\n> /dev/null || cat\n>    clean = openssl enc -base64 -aes-256-ecb -S '12345' -k 'abcde'\n> [diff \"openssl\"]\n>    textconv = openssl enc -d -base64 -aes-256-ecb -k 'abcde' -in \"$1\"\n> 2> /dev/null || cat \"$1\"\n> [merge]\n>    renormalize = true\n\nMaybe a bad interaction between the [filter ...] section and the\n[textconv ...] one. Can you run:\n\nGIT_TRACE=true git show <some-relevant-commit>\n\nto see what's going on?\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"211035","messageId":"513DC04D.9090904@mylovecompany.com","threadId":"33152","inReplyTo":"vpqd2v6b4n5.fsf@grenoble-inp.fr","subject":"Re: Textconv","fromName":"Dmitry Ilin","fromEmail":"dmitry@mylovecompany.com","sentAt":"2013-03-11T11:30:21Z","receivedAt":"2013-03-11T11:30:21Z","isPatch":false,"sender":{"key":"dmitry@mylovecompany.com","avatar":null},"body":"I tried this command and I got following result:\n\ntrace: built-in: git 'show' 'a1bffde'\ntrace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k \n'\\''abcde'\\'' 2> /dev/null || cat'\ntrace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k \n'\\''abcde'\\'' 2> /dev/null || cat' 'openssl enc -d -base64 -aes-256-ecb \n-k '\\''abcde'\\'' 2> /dev/null || cat'\ntrace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k \n'\\''abcde'\\'' -in $1 2> /dev/null || cat $1' '/tmp/CLPGPk_config.js'\ntrace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k \n'\\''abcde'\\'' -in $1 2> /dev/null || cat $1 \"$@\"' 'openssl enc -d \n-base64 -aes-256-ecb -k '\\''abcde'\\'' -in $1 2> /dev/null || cat $1' \n'/tmp/CLPGPk_config.js'\ntrace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k \n'\\''abcde'\\'' 2> /dev/null || cat'\ntrace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k \n'\\''abcde'\\'' 2> /dev/null || cat' 'openssl enc -d -base64 -aes-256-ecb \n-k '\\''abcde'\\'' 2> /dev/null || cat'\ntrace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k \n'\\''abcde'\\'' -in $1 2> /dev/null || cat $1' '/tmp/Uyc2Dj_config.js'\ntrace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k \n'\\''abcde'\\'' -in $1 2> /dev/null || cat $1 \"$@\"' 'openssl enc -d \n-base64 -aes-256-ecb -k '\\''abcde'\\'' -in $1 2> /dev/null || cat $1' \n'/tmp/Uyc2Dj_config.js'\ndiff --git a/path/config.js b/path/config.js\nindex c4ad2d4..a67d13f 100644\n--- a/path/config.js\n+++ b/path/config.js\n\n\nAnd also not encrypted data of my commit.\n\n\nOn 03/11/2013 02:41 PM, Matthieu Moy wrote:\n> Dmitry Ilin <dmitry@mylovecompany.com> writes:\n>\n>> I mean that our filter doesn't work with 'git show' and I need to\n>> enable it for this command.\n>>\n>> This is part of my git config file:\n>>\n>> [filter \"openssl\"]\n>>     smudge = openssl enc -d -base64 -aes-256-ecb -k 'abcde' 2>\n>> /dev/null || cat\n>>     clean = openssl enc -base64 -aes-256-ecb -S '12345' -k 'abcde'\n>> [diff \"openssl\"]\n>>     textconv = openssl enc -d -base64 -aes-256-ecb -k 'abcde' -in \"$1\"\n>> 2> /dev/null || cat \"$1\"\n>> [merge]\n>>     renormalize = true\n> Maybe a bad interaction between the [filter ...] section and the\n> [textconv ...] one. Can you run:\n>\n> GIT_TRACE=true git show <some-relevant-commit>\n>\n> to see what's going on?\n>\n"},{"id":"211045","messageId":"513DECD4.8080002@drmicha.warpmail.net","threadId":"33152","inReplyTo":"513DC04D.9090904@mylovecompany.com","subject":"Re: Textconv","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2013-03-11T14:40:20Z","receivedAt":"2013-03-11T14:40:20Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Dmitry Ilin venit, vidit, dixit 11.03.2013 12:30:\n> I tried this command and I got following result:\n> \n> trace: built-in: git 'show' 'a1bffde'\n> trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k \n> '\\''abcde'\\'' 2> /dev/null || cat'\n> trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k \n> '\\''abcde'\\'' 2> /dev/null || cat' 'openssl enc -d -base64 -aes-256-ecb \n> -k '\\''abcde'\\'' 2> /dev/null || cat'\n> trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k \n> '\\''abcde'\\'' -in $1 2> /dev/null || cat $1' '/tmp/CLPGPk_config.js'\n> trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k \n> '\\''abcde'\\'' -in $1 2> /dev/null || cat $1 \"$@\"' 'openssl enc -d \n> -base64 -aes-256-ecb -k '\\''abcde'\\'' -in $1 2> /dev/null || cat $1' \n> '/tmp/CLPGPk_config.js'\n> trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k \n> '\\''abcde'\\'' 2> /dev/null || cat'\n> trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k \n> '\\''abcde'\\'' 2> /dev/null || cat' 'openssl enc -d -base64 -aes-256-ecb \n> -k '\\''abcde'\\'' 2> /dev/null || cat'\n> trace: run_command: 'openssl enc -d -base64 -aes-256-ecb -k \n> '\\''abcde'\\'' -in $1 2> /dev/null || cat $1' '/tmp/Uyc2Dj_config.js'\n> trace: exec: 'sh' '-c' 'openssl enc -d -base64 -aes-256-ecb -k \n> '\\''abcde'\\'' -in $1 2> /dev/null || cat $1 \"$@\"' 'openssl enc -d \n> -base64 -aes-256-ecb -k '\\''abcde'\\'' -in $1 2> /dev/null || cat $1' \n> '/tmp/Uyc2Dj_config.js'\n> diff --git a/path/config.js b/path/config.js\n> index c4ad2d4..a67d13f 100644\n> --- a/path/config.js\n> +++ b/path/config.js\n> \n> \n> And also not encrypted data of my commit.\n> \n> \n> On 03/11/2013 02:41 PM, Matthieu Moy wrote:\n>> Dmitry Ilin <dmitry@mylovecompany.com> writes:\n>>\n>>> I mean that our filter doesn't work with 'git show' and I need to\n>>> enable it for this command.\n>>>\n>>> This is part of my git config file:\n>>>\n>>> [filter \"openssl\"]\n>>>     smudge = openssl enc -d -base64 -aes-256-ecb -k 'abcde' 2>\n>>> /dev/null || cat\n>>>     clean = openssl enc -base64 -aes-256-ecb -S '12345' -k 'abcde'\n>>> [diff \"openssl\"]\n>>>     textconv = openssl enc -d -base64 -aes-256-ecb -k 'abcde' -in \"$1\"\n>>> 2> /dev/null || cat \"$1\"\n>>> [merge]\n>>>     renormalize = true\n>> Maybe a bad interaction between the [filter ...] section and the\n>> [textconv ...] one. Can you run:\n>>\n>> GIT_TRACE=true git show <some-relevant-commit>\n>>\n>> to see what's going on?\n>>\n> \n\n\"git show commit\" uses textconv by default for the patch, but \"git show\nblob\" does not. There's a series on the list which deals with textconv\nfor \"grep\" and \"show blob\", but I haven't had the time to polish it up.\nI don't think it's cooking in pu yet, but I've been running with it\nsince. \"running git with it\", that is, not \"running away with it\" ;)\n\nMichael\n"}]}