Re: [PATCH 3/4] add a test case for git-merge-one-file

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

 



Hi,

On Wed, 24 Jan 2007, Junio C Hamano wrote:

> Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes:
> 
> > +git-update-index --index-info << EOF
> > +10644 $hash_one 1	one
> > +10644 $hash_two 2	one
> > +10644 $hash_three 3	one
> > +EOF
> 
> How can this work with 10644 instead of 100644?  Did you spot a
> bug in update-index --index-info?

Actually, since !S_ISLNK(010644), it uses ce_permissions(010644), which 
basically only checks if (010644 & 0100) is set (i.e. if it is executable 
by the user), and depending on this returns 0755 or 0644.

That's why it works.

Ciao,
Dscho

-
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]