get current commit inside get_changes + test
improved docs for the get_changes function