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

Re: Propose a change in open for passing in the file type.

From
Torsten Bögershausen <tboegi@web.de>
Date
Dec 16, 2023, 13:28 UTC
Message-ID
<20231216132844.GA10935@tb-raspi4>
In-Reply-To
<ZXkwTYD9nmPYn9UW@danh.dev>

On Wed, Dec 13, 2023 at 11:17:17AM +0700, Đoàn Trần Công Danh wrote: []

> Would it work if you always open the file as BINARY?
Yes, I think so.
> And let's all the
> conversion done by git via some configs (core.encoding?)?

We already have an attribute, "working-tree-encoding", that can tell Git to do the encoding/reencoding. The advantage of the .gitattributes file is, that it is typically commit into the repo, and travels with `git push` and `git fetch` or `git pull` to the different work stations, so that everybody has the same settings.

In opposite, config files are always local. So that everybody should do the same (local) git config. If that is forgotten for some reason, then different configurations leads often to some kind of chaos.

But I don't have a z/os sytem to test on.
Previous: Đoàn Trần Công Danh
Message 4 of 4 in “Propose a change in open for passing in the file type.”
  1. Haritha DDec 12, 2023
  2. Torsten BögershausenDec 12, 2023
  3. Đoàn Trần Công DanhDec 13, 2023
  4. Torsten BögershausenDec 16, 2023

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.