SVCS - English Documentation
Loading...
Searching...
No Matches
UndoCommand.hxx File Reference

Declaration of the UndoCommand class for reverting changes. More...

#include "ICommand.hxx"
#include "../../services/ISubject.hxx"
#include "../../core/include/RepositoryManager.hxx"
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  svcs::cli::UndoCommand
 Command to revert the repository state to a previous commit. More...

Namespaces

namespace  svcs::cli
 Command-line interface components and command implementations.

Detailed Description

Declaration of the UndoCommand class for reverting changes.

The UndoCommand is responsible for reverting the repository's working directory and history to the state of a previous commit. It supports reverting the last commit or a specific commit identified by its hash. This operation typically involves confirming the action before execution, unless a force flag is used.