Re: confused about preserved permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 20, 2007 at 07:06:27PM -0700, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> That is almost true, but there is one factual error I need to
> correct.
> 
> In-tree representation of the mode is not actually "%06o" but
> just "%o".  In very early days of git, we used to have extra
> leading "0" in trees (e.g. "040000"), but that is something
> modern fsck even warns about.  IOW, it is not the norm.
> 
> It is represented as text because we _can_ add any number of
> bits to the data later if we wanted to.  Basic tree objects that
> contain only the kind of data we traditionally used will
> continue to work, while trees that contain (yet to be invented)
> new types that are represented with longer mode bits may of
> course not be read by older tools.
(...)

That makes sense. (BTW, I must have misremembered the %06o thing,
because my script to hash random trees does use %o).

Anyways, that still doesn't say why all these permission bits are kept
while only the executable bit matters, though it must be related to
backwards compatibility of hashes.

I'd also like to head about why git-archive doesn't set permissions like
the manpage says (see my first post in the thread)

Mike
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux