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

Re: Git bug. gitattributes' pattern does not respect spaces in the filenames

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 10, 2011, 15:28 UTC
Message-ID
<7vipnwooh1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20111010110221.38e9985a@ashu.dyn.rarus.ru>
Alexey Shumkin <Alex.Crezoff@gmail.com> writes:
Show 6 quoted lines
> As far as cp1251 and UTF-8 files are in different folders,
> it is logically enough to set pattern like
>
> <folder with a UTF-8-xmls>/*.xml diff=utf8-to-cp1251
>
> for the UTF-8 files.

... IN the directory that needs conversion and not in the other one or at the toplevel. Problem solved, no?

Another idea may be to use "?" in the directory part of the pattern. Unless the directory structure is sick enough to have these directory names:

	dir-1/utf8-file.xml
        dir 1/cp1251-file.xml
dir?1/*.xml would match the matter, so...
Previous: Alexey ShumkinNext: Alexey Shumkin
Message 2 of 3 in “Git bug. gitattributes' pattern does not respect spaces in the filenames”
  1. Alexey ShumkinOct 10, 2011
  2. Junio C HamanoOct 10, 2011
  3. Alexey ShumkinOct 10, 2011

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.