get last commit id & committed files listing function