class GitRename {

    public static GitRename parseRenamed(String line) throws Exception {
        line = line.trim();
        if (line.startsWith("rename")) {
            GitRename rename;
            if (line.contains("{")) {
                rename = parseWithBraces(line);
                if (rename != null) {
                    return rename;
                }
            } else {
                rename = parseWithoutBraces(line);
                if (rename != null) {
                    return rename;
                }
            }
        }
        throw new Exception("Unable to parse line: " + line);
    }

    public  GitRename(String oldFile, String newFile, int similarity);

}