Files
GitHawk/Classes/Issues/Files/File+ListDiffable.swift
2017-12-05 22:49:21 -05:00

25 lines
529 B
Swift

//
// File+ListDiffable.swift
// Freetime
//
// Created by Ryan Nystrom on 11/26/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import Foundation
import IGListKit
extension File: ListDiffable {
func diffIdentifier() -> NSObjectProtocol {
return (filename + sha) as NSObjectProtocol
}
func isEqual(toDiffableObject object: ListDiffable?) -> Bool {
if self === object { return true }
// assume that if the sha is the same, its the same patch
return true
}
}