Deleted empty patch files
This commit is contained in:
parent
79d0e232f6
commit
6ea4ffe62d
Binary file not shown.
|
@ -34,6 +34,10 @@ import com.github.difflib.patch.Patch;
|
|||
public class EaglerContextRedacted {
|
||||
|
||||
public static void writeContextRedacted(Patch<String> patch, PrintWriter output) {
|
||||
writeContextRedacted(patch.getDeltas(), output);
|
||||
}
|
||||
|
||||
public static void writeContextRedacted(List<AbstractDelta<String>> deltas, PrintWriter output) {
|
||||
Date theDate = new Date();
|
||||
|
||||
output.println();
|
||||
|
@ -46,7 +50,6 @@ public class EaglerContextRedacted {
|
|||
|
||||
int lastSourcePos = 0;
|
||||
int lastTargetPos = 0;
|
||||
List<AbstractDelta<String>> deltas = patch.getDeltas();
|
||||
delta_itr: for(int i = 0, l = deltas.size(); i < l; ++i) {
|
||||
AbstractDelta<String> delta = deltas.get(i);
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ import org.apache.commons.io.FileUtils;
|
|||
import org.apache.commons.io.IOUtils;
|
||||
|
||||
import com.github.difflib.DiffUtils;
|
||||
import com.github.difflib.patch.AbstractDelta;
|
||||
import com.github.difflib.patch.DeltaType;
|
||||
import com.github.difflib.patch.Patch;
|
||||
|
||||
import net.lax1dude.eaglercraft.v1_8.buildtools.EaglerBuildToolsConfig;
|
||||
|
@ -442,8 +444,13 @@ public class MergePullRequest {
|
|||
}else {
|
||||
List<String> oldLines = Lines.linesList(oldStr);
|
||||
List<String> newLines = Lines.linesList(newStr);
|
||||
Patch<String> deltas = DiffUtils.diff(oldLines, newLines);
|
||||
|
||||
List<AbstractDelta<String>> deltas = DiffUtils.diff(oldLines, newLines).getDeltas();
|
||||
|
||||
// hack
|
||||
if(deltas.size() == 0 || (deltas.size() == 1 && deltas.get(0).getType() == DeltaType.EQUAL)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// List<String> diffFile = UnifiedDiffUtils.generateUnifiedDiff(outName, outName, oldLines, deltas, ApplyPatchesToZip.patchContextLength);
|
||||
//
|
||||
// if(diffFile.size() == 0) {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
# Eagler Context Redacted Diff
|
||||
# Copyright (c) 2024 lax1dude. All rights reserved.
|
||||
|
||||
# Version: 1.0
|
||||
# Author: lax1dude
|
||||
|
||||
> EOF
|
Loading…
Reference in New Issue
Block a user