final EntryType entryType = EntryType.guessFromPath(targetPath); final String content; try {
final EntryType entryType = EntryType.guessFromPath(targetPath); final String content; try {
final EntryType entryType = EntryType.guessFromPath(targetPath); final String content; try {
final EntryType entryType = EntryType.guessFromPath(path); if (fetchContent) { final byte[] content = reader.open(treeWalk.getObjectId(0)).getBytes();
final EntryType entryType = EntryType.guessFromPath(path); if (fetchContent) { final byte[] content = reader.open(treeWalk.getObjectId(0)).getBytes();
final EntryType entryType = EntryType.guessFromPath(path); if (fetchContent) { final byte[] content = reader.open(treeWalk.getObjectId(0)).getBytes();
switch (EntryType.guessFromPath(localPath)) { case JSON: final JsonNode jsonNode = Jackson.readTree(content);
switch (EntryType.guessFromPath(localPath)) { case JSON: final JsonNode jsonNode = Jackson.readTree(content);
switch (EntryType.guessFromPath(localPath)) { case JSON: final JsonNode jsonNode = Jackson.readTree(content);
final EntryType oldEntryType = EntryType.guessFromPath(oldPath); switch (oldEntryType) { case JSON: final EntryType newEntryType = EntryType.guessFromPath(newPath); switch (newEntryType) { case JSON: {
final EntryType oldEntryType = EntryType.guessFromPath(oldPath); switch (oldEntryType) { case JSON: final EntryType newEntryType = EntryType.guessFromPath(newPath); switch (newEntryType) { case JSON: {
final EntryType oldEntryType = EntryType.guessFromPath(oldPath); switch (oldEntryType) { case JSON: final EntryType newEntryType = EntryType.guessFromPath(newPath); switch (newEntryType) { case JSON: {