brew/Library/Homebrew/cmd/update-reset.rb
2024-07-15 14:48:36 -04:00

24 lines
531 B
Ruby

# typed: strict
# frozen_string_literal: true
require "abstract_command"
require "shell_command"
module Homebrew
module Cmd
class UpdateReset < AbstractCommand
include ShellCommand
cmd_args do
description <<~EOS
Fetch and reset Homebrew and all tap repositories (or any specified <repository>) using `git`(1) to their latest `origin/HEAD`.
*Note:* this will destroy all your uncommitted or committed changes.
EOS
named_args :repository
end
end
end
end