Module: Rfix::Types::Status

Defined in:
lib/rfix/types.rb

Constant Summary collapse

List =
Array(Symbol)
Deleted =
%i[deleted worktree_deleted].map do |status|
  List.constrained(includes: status)
end.reduce(:|)
Ignored =
%i[ignored unmodified].map do |status|
  List.constrained(includes: status)
end.reduce(:|)
Untracked =
%i[untracked index_new worktree_new].map do |status|
  List.constrained(includes: status)
end.reduce(:|)
Tracked =
List << (Deleted | Ignored | Untracked).not