Re: [PATCH 3/4] add a test case for git-merge-one-file
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 25, 2007, 08:34 UTC
- Message-ID
- <Pine.LNX.4.63.0701250932360.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <7vy7nsc6f0.fsf@assigned-by-dhcp.cox.net>
Hi,
On Wed, 24 Jan 2007, Junio C Hamano wrote:
Show 10 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> 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