Thread (1 message) 1 message, 1 author, 2018-07-03

Re: Use of new .gitattributes working-tree-encoding attribute across different platform types

From: Junio C Hamano <hidden>
Date: 2018-07-03 16:01:12

Jeff King [off-list ref] writes:
One thing I almost did in the example I gave above was to literally call
the encoding name by a "real" one. I.e.:

  echo '*.txt working-tree-encoding=iso-8859-1' >.gitattributes
  git config encoding.iso-8859-1.replace latin1

or something. But I wondered if it was a little crazy as a practice,
since mapping "iso-8859-1" to "utf-8" is probably going to lead to
headaches.

But your example above of semantically equivalent variants with
different spellings would be a good use of that trick.
Yeah, I think the above looks quite sensible.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help