Re: git and symlinks as tracked content
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- May 3, 2005, 22:56 UTC
- Message-ID
- <42780185.7010204@zytor.com>
- In-Reply-To
- <7vr7got2tz.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 16 quoted lines
> > Introducing "dev" type, as Andreas suggests, is wrong. This > this should be done in the same way as you suggested for the > symlink case. Store a blob object with those chrdev or blkdev > modes whose contents are of form: > > major=14 > minor=4 > owner=root > group=audio > perm=0660 > > This would impact the diff side least, and for the cache side it > does not matter in storing and merging. checkout-cache still > needs to know about this. >
Owner and permissions are part of the tree object, and apply to all file types. The only thing equivalent to file data is the major,minor; storing it as a comma-separated decimal ASCII string is probably the cleanest, i.e. for your exaple:
14,4
-hpa