mirror of
https://github.com/gitnex-org/gitnex.git
synced 2026-07-16 09:52:49 -05:00
Merge branch 'main' into revamp-issues-list
This commit is contained in:
@@ -13,3 +13,8 @@ pipeline:
|
||||
settings:
|
||||
file_pattern: "*.java"
|
||||
path: "app/"
|
||||
|
||||
test:
|
||||
image: alvrme/alpine-android:android-31-jdk11
|
||||
commands:
|
||||
- ./gradlew test
|
||||
|
||||
@@ -43,6 +43,12 @@ public class ParseDiff {
|
||||
Matcher rmMatcher = rmPattern.matcher(raw);
|
||||
Matcher addMatcher = addPattern.matcher(raw);
|
||||
|
||||
if(raw.startsWith("+")) {
|
||||
add++;
|
||||
}
|
||||
else if(raw.startsWith("-")) {
|
||||
rm++;
|
||||
}
|
||||
while(rmMatcher.find())
|
||||
rm++;
|
||||
while(addMatcher.find())
|
||||
|
||||
Reference in New Issue
Block a user