final case class FileComparisonRenamed(sha: String, filename: String, additions: Int, deletions: Int, changes: Int, blob_url: String, raw_url: String, contents_url: String, patch: Option[String], previous_filename: String) extends FileComparison
Represents a file comparison where the file was renamed. The patch field will exist if there were also small internal file changes, and the previous_filename field is guaranteed to exist, containing the file's previous filename.
Gets the contents of the patch field if it exists, in the case that the file was modified. To guarantee that the patch field is available, match this FileComparison value as a FileComparison.FileComparisonNotRenamed type which always has this field.
Gets the contents of the patch field if it exists, in the case that the file was modified. To guarantee that the patch field is available, match this FileComparison value as a FileComparison.FileComparisonNotRenamed type which always has this field.
Gets the contents of the previous_filename field if it exists. This field is guaranteed to appear in the event of any rename. To guarantee that this field is available, match this FileComparison value as a FileComparison.FileComparisonRenamde type which always has this field.
Gets the contents of the previous_filename field if it exists. This field is guaranteed to appear in the event of any rename. To guarantee that this field is available, match this FileComparison value as a FileComparison.FileComparisonRenamde type which always has this field.