{"thread":{"id":"37487","subject":"Re: Can git detect and manage source file's extensional attribute by command 'setfattr' ?","startedAt":"2014-09-04T08:11:06Z","lastAt":"2014-09-04T13:07:28Z","messageCount":2,"participants":["brian m. carlson","wangfeng wangfeng"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"299210","messageId":"CAHbSJRD=S4u=_Ke3UKfzaVdsPnjvkKf0VYBjo8sNjFXM32wKTQ@mail.gmail.com","threadId":"37487","inReplyTo":null,"subject":"Can git detect and manage source file's extensional attribute by command 'setfattr' ?","fromName":"wangfeng wangfeng","fromEmail":"wangfeng.v1.1985@gmail.com","sentAt":"2014-09-04T08:11:06Z","receivedAt":"2014-09-04T08:11:06Z","isPatch":false,"sender":{"key":"wangfeng.v1.1985@gmail.com","avatar":null},"body":"Hi ,\n    I know that git can cope with file's chmod. But how about\nsetfattr? I have tried to set some extensional attribute with command\n:\n####\nsetfattr -n user.t1 -v 1 testfile.txt\n####\nIt seems like git cannot detect it. So do I need some config option\nfor git? Or doesn't it have this feature?\n    Thanks very much.\n\nWang\n"},{"id":"248832","messageId":"20140904130728.GB17505@vauxhall.crustytoothpaste.net","threadId":"37487","inReplyTo":"CAHbSJRD=S4u=_Ke3UKfzaVdsPnjvkKf0VYBjo8sNjFXM32wKTQ@mail.gmail.com","subject":"Re: Can git detect and manage source file's extensional attribute by command 'setfattr' ?","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2014-09-04T13:07:28Z","receivedAt":"2014-09-04T13:07:28Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On Thu, Sep 04, 2014 at 04:11:06PM +0800, wangfeng wangfeng wrote:\n> Hi ,\n>     I know that git can cope with file's chmod. But how about\n> setfattr? I have tried to set some extensional attribute with command\n> :\n> ####\n> setfattr -n user.t1 -v 1 testfile.txt\n> ####\n> It seems like git cannot detect it. So do I need some config option\n> for git? Or doesn't it have this feature?\n>     Thanks very much.\n\nNo, Git doesn't support extended attributes natively.  In fact, the only\nmodes that Git stores are the file type and the executable bit.\n\nIf you need to store this information, you could either have it\nrecreated by running, say, a Makefile, or you could see if the filter\nfunctionality of .gitattributes does what you want.\n-- \nbrian m. carlson / brian with sandals: Houston, Texas, US\n+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only\nOpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187\n"}]}