Skip to content

Commit 1ada3a1

Browse files
Provide more output at lit checkout.
1 parent 1b9a62e commit 1ada3a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: include/commands/checkout.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class CheckoutCommand : public Command {
3535
}
3636

3737
if (arguments.size() == 0 && !Repository::get_head().has_value()) {
38+
cout << "No commit found. Repository will be reset to an empty state!" << endl;
3839
Repository::clear();
3940
return 0;
4041
}

0 commit comments

Comments
 (0)