Sha256: fe23e554e061c7f34a416ee009b51a64eaf20f4bc662ec5109a10cb9c245b672
Contents?: true
Size: 458 Bytes
Versions: 7
Compression:
Stored size: 458 Bytes
Contents
module Braid module Commands class Diff < Command def run(path) mirror = config.get!(path) if mirror.type == "git-clone" unless system("cd #{mirror.path} && git diff") msg "Error diffing \"#{path}\" in \"#{mirror.path}\"" exit 1 end else setup_remote(mirror) diff = mirror.diff puts diff unless diff.empty? end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems