Sha256: a51b465498a6e96fa86eabde6fe090c46bc5fffecc98e1f7095e7d5b1319546a
Contents?: true
Size: 645 Bytes
Versions: 49
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true require "English" module ReactOnRails module GitUtils def self.uncommitted_changes?(message_handler) return false if ENV["COVERAGE"] == "true" status = `git status --porcelain` return false if $CHILD_STATUS.success? && status.empty? error = if !$CHILD_STATUS.success? "You do not have Git installed. Please install Git, and commit your changes before continuing" else "You have uncommitted code. Please commit or stash your changes before continuing" end message_handler.add_error(error) true end end end
Version data entries
49 entries across 49 versions & 1 rubygems