From: Johannes Schindelin Date: Thu, 25 Jan 2007 08:34:16 GMT Subject: Re: [PATCH 3/4] add a test case for git-merge-one-file Message-ID: In-Reply-To: <7vy7nsc6f0.fsf@assigned-by-dhcp.cox.net> Hi, On Wed, 24 Jan 2007, Junio C Hamano wrote: > Johannes Schindelin 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