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

Gitattributes not properly supported with add command

From
Ssmaudet@sebastianaudet.com <smaudet@sebastianaudet.com>
Date
Sep 12, 2018, 13:16 UTC
Message-ID
<20180912131625.GA7736@sebastianaudet.com>
The following:
git add -u :\(glob,attr:-someAttr\):src/**
Produces an error that, according to the source code, should never be visible to the user. This attribute/pathspec *should* be supported according to the documentation provided by git:
fatal: BUG:builtin/add.c:498: unsupported magic 40

It looks like the documentation claims more features than the source code supports, perhaps incorrectly because I think you shouldn't be restricted to a set of attributes, and the source code doesn't properly do its job anyways and never handles this scenario.

This should be fixed, if I have any time I'll look into what it would take to submit a patch, but I don't have the time for this right now.
Message 1 of 1 in “Gitattributes not properly supported with add command”
  1. smaudet@sebastianaudet.comSep 12, 2018

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.