knotserver/git: improve lastCommit calculations for dirs and files
bigger portions of the logic for directories and files are now shared.Signed-off-by: oppiliappan <me@oppi.li>
oppiliappan 1 month ago c356948c 54b89d3f