Community
Participate
Working Groups
Provide the majority of the lstat() structure up to the Java level. The important part about this is first that its lstat() and not stat(), because then we read the status of a symlink itself and not the target of the link. The second part is being able to get the st_mode, st_mtime and st_size fields in a single operating system call. If we want to be more compatibility with the C implementation we would honor the tv_nsec for nanosecond component of the time field, so we can get more accurate times than just milliseconds. We might also want to honor the st_ctime, st_dev, st_ino, st_uid and st_gid fields that C Git stores into the index record (see DirCacheEntry's commented out static constants).
this is now implemented using java 8