Skip to content

Commit

Permalink
fix: ignore line ending changes for change detection
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Jan 26, 2024
1 parent cb805e5 commit b80949c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class MetadataHelper {
def relativePath = repoRoot.relativePath(checkForDir)
//XXX do we need to replace \ with / for Windows?

// add changes on relative path to index, so something like line-ending changes is not registered
project.ext.grgit.add(patterns: [relativePath])

def status = project.ext.grgit.status()

// check for any changes and conflicts
Expand Down

0 comments on commit b80949c

Please sign in to comment.