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

Re: Can git detect and manage source file's extensional attribute by command 'setfattr' ?

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Sep 4, 2014, 13:07 UTC
Message-ID
<20140904130728.GB17505@vauxhall.crustytoothpaste.net>
In-Reply-To
<CAHbSJRD=S4u=_Ke3UKfzaVdsPnjvkKf0VYBjo8sNjFXM32wKTQ@mail.gmail.com>
On Thu, Sep 04, 2014 at 04:11:06PM +0800, wangfeng wangfeng wrote:
Show 10 quoted lines
> Hi ,
>     I know that git can cope with file's chmod. But how about
> setfattr? I have tried to set some extensional attribute with command
> :
> ####
> setfattr -n user.t1 -v 1 testfile.txt
> ####
> It seems like git cannot detect it. So do I need some config option
> for git? Or doesn't it have this feature?
>     Thanks very much.

No, Git doesn't support extended attributes natively. In fact, the only modes that Git stores are the file type and the executable bit.

If you need to store this information, you could either have it recreated by running, say, a Makefile, or you could see if the filter functionality of .gitattributes does what you want.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
Previous: wangfeng wangfeng
Message 2 of 2 in “Can git detect and manage source file's extensional attribute by command 'setfattr' ?”
  1. wangfeng wangfengSep 4, 2014
  2. brian m. carlsonSep 4, 2014

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.