GitRevision.getChanges: remove redundant copying