-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for providing a raw commit SHA to compare against as a ne…
…w comparison strategy (#279) * Add support for providing the raw String of a commit SHA as a comparison strategy * Add documentation for new comparison strategy to README * Fix ‘Not enough information to infer type variable T’ * Add unit tests for the new comparison strategy * Undo reformatting * Fix formatting * Add unit tests for configuration * Revert "Fix ‘Not enough information to infer type variable T’" This reverts commit 2586a3d.
- Loading branch information
1 parent
78f344e
commit b826d47
Showing
7 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ain/kotlin/com/dropbox/affectedmoduledetector/commitshaproviders/SpecifiedRawCommitSha.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.dropbox.affectedmoduledetector.commitshaproviders | ||
|
||
import com.dropbox.affectedmoduledetector.GitClient | ||
import com.dropbox.affectedmoduledetector.Sha | ||
|
||
class SpecifiedRawCommitSha(private val commitSha: String) : CommitShaProvider { | ||
override fun get(commandRunner: GitClient.CommandRunner): Sha { | ||
return commitSha | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters