instance method
SyntaxSuggest::ScanHistory#revert_last_commit
revert_last_commit
lib/syntax_suggest/scan_history.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/syntax_suggest/scan_history.rb, line 47
def revert_last_commit
if @history.length > 1
@history.pop
refresh_index
end
self
end
Discard changes that have not been committed and revert the last commit
Cannot revert the first commit