summaryrefslogtreecommitdiff
path: root/lib/syntax_suggest/scan_history.rb
diff options
context:
space:
mode:
-rw-r--r--lib/syntax_suggest/scan_history.rb16
1 files changed, 15 insertions, 1 deletions
@@ -3,8 +3,21 @@
module SyntaxSuggest
# Scans up/down from the given block
#
- # You can snapshot a change by committing it and rolling back.
#
class ScanHistory
attr_reader :before_index, :after_index
@@ -25,6 +38,7 @@ module SyntaxSuggest
# Discards any changes that have not been committed
def stash_changes
refresh_index
end
# Discard changes that have not been committed and revert the last commit