Commits cc0e460: Do not load all patches when a new diff is set, it is enough to have the index and loading the patches on demand (Martin Marmsoler) #308 9f273d8: use reusable function (Martin Marmsoler) #308 12cf28f: not neccessary that filename is found so it has to be checked (Martin Marmsoler) #308