Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331072

Summary: Provide optional JNI implementation for lstat()
Product: [Technology] JGit Reporter: Matthias Sohn <matthias.sohn>
Component: JGitAssignee: Matthias Sohn <matthias.sohn>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse.org
Version: 0.10.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 331071    

Description Matthias Sohn CLA 2010-11-24 18:01:03 EST
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).
Comment 1 Matthias Sohn CLA 2021-11-07 16:26:42 EST
this is now implemented using java 8