performing commit after diff