lib/spoom/context/git.rb in spoom-1.2.4 vs lib/spoom/context/git.rb in spoom-1.3.0
- old
+ new
@@ -7,11 +7,11 @@
extend T::Sig
class << self
extend T::Sig
- # Parse a line formated as `%h %at` into a `Commit`
+ # Parse a line formatted as `%h %at` into a `Commit`
sig { params(string: String).returns(T.nilable(Commit)) }
def parse_line(string)
sha, epoch = string.split(" ", 2)
return unless sha && epoch
@@ -125,10 +125,10 @@
sig { params(arg: String).returns(ExecResult) }
def git_show(*arg)
git("show #{arg.join(" ")}")
end
- # Is there uncommited changes in this context directory?
+ # Is there uncommitted changes in this context directory?
sig { params(path: String).returns(T::Boolean) }
def git_workdir_clean?(path: ".")
git_diff("HEAD").out.empty?
end
end