git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Textconv

From
DIDmitry Ilin <dmitry@mylovecompany.com>
Date
Mar 11, 2013, 10:31 UTC
Message-ID
<513DB273.2090007@mylovecompany.com>
In-Reply-To
<vpqtxoicl2l.fsf@grenoble-inp.fr>

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
And content of '.git/info/attributes':
* filter=openssl diff=openssl
How can I deal with it?
On 03/11/2013 02:00 PM, Matthieu Moy wrote:
Show 14 quoted lines
> Dmitry Ilin <dmitry@mylovecompany.com> writes:
>
>> Hello!
>>
>> Most of GUI for Git using 'git show' command to show differences
>> between versions. For example: WebStorm IDE. But for now there is no
>> way to specify text conversion command in git config for 'show' as it
>> done for 'diff'.
> Do you mean, to enable it, or to disable it?
>
> By default, "git show" does use the textconv filter to compute the diff,
> at least if you specified the textconv driver in your .gitattributes
> file.
>
Previous: Matthieu MoyNext: Matthieu Moy
Message 3 of 6 in “Textconv”
  1. Dmitry IlinMar 11, 2013
  2. Matthieu MoyMar 11, 2013
  3. Dmitry IlinMar 11, 2013
  4. Matthieu MoyMar 11, 2013
  5. Dmitry IlinMar 11, 2013
  6. Michael J GruberMar 11, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.