git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Can git detect and manage source file's extensional attribute by command 'setfattr' ?
@ 2014-09-04  8:11 wangfeng wangfeng
  2014-09-04 13:07 ` brian m. carlson
  0 siblings, 1 reply; 2+ messages in thread
From: wangfeng wangfeng @ 2014-09-04  8:11 UTC (permalink / raw)
  To: git

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.

Wang

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Can git detect and manage source file's extensional attribute by command 'setfattr' ?
  2014-09-04  8:11 Can git detect and manage source file's extensional attribute by command 'setfattr' ? wangfeng wangfeng
@ 2014-09-04 13:07 ` brian m. carlson
  0 siblings, 0 replies; 2+ messages in thread
From: brian m. carlson @ 2014-09-04 13:07 UTC (permalink / raw)
  To: wangfeng wangfeng; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

On Thu, Sep 04, 2014 at 04:11:06PM +0800, wangfeng wangfeng wrote:
> 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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-04 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-04  8:11 Can git detect and manage source file's extensional attribute by command 'setfattr' ? wangfeng wangfeng
2014-09-04 13:07 ` brian m. carlson

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).