Add "commit current file" function.