Re: [PATCH] Perform minimal stat comparison when some stat fields are not set

2012-12-06 Thread Robin Rosenberg
- Ursprungligt meddelande - > Am 12/6/2012 2:09, schrieb Robin Rosenberg: > >> Robin Rosenberg writes: > >>> At least JGit does sets uid, gid, ctime, ino and dev fields to > >>> zero > >>> on update. To Git this looks like the stat data does not match > >>> and > >>> a full file compare

Re: [PATCH] Perform minimal stat comparison when some stat fields are not set

2012-12-05 Thread Johannes Sixt
Am 12/6/2012 2:09, schrieb Robin Rosenberg: >> Robin Rosenberg writes: >>> At least JGit does sets uid, gid, ctime, ino and dev fields to zero >>> on update. To Git this looks like the stat data does not match and >>> a full file compare will be forced even it size and mtime match. >>> This >>> is

Re: [PATCH] Perform minimal stat comparison when some stat fields are not set

2012-12-05 Thread Robin Rosenberg
- Ursprungligt meddelande - > Robin Rosenberg writes: > > > At least JGit does sets uid, gid, ctime, ino and dev fields to zero > > on update. To Git this looks like the stat data does not match and > > a full file compare will be forced even it size and mtime match. > > This > > is in

Re: [PATCH] Perform minimal stat comparison when some stat fields are not set

2012-12-05 Thread Junio C Hamano
Robin Rosenberg writes: > At least JGit does sets uid, gid, ctime, ino and dev fields to zero > on update. To Git this looks like the stat data does not match and > a full file compare will be forced even it size and mtime match. This > is in practice unnecessary. Sense JGit's presence by checkin

[PATCH] Perform minimal stat comparison when some stat fields are not set

2012-12-05 Thread Robin Rosenberg
At least JGit does sets uid, gid, ctime, ino and dev fields to zero on update. To Git this looks like the stat data does not match and a full file compare will be forced even it size and mtime match. This is in practice unnecessary. Sense JGit's presence by checking if ino and dev is zero. Signed-