Update the diff margin when changes are made to the repository