summaryrefslogtreecommitdiffstats
path: root/lib/git/status.rb
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-11 11:32:57 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-11 11:32:57 -0800
commit070381bb456b25f3e867e9b23b78911190c6b369 (patch)
tree140a03e14e0601e941f3b5192f9a81d362565d6e /lib/git/status.rb
parent440ec51cded64d49c5c2aae949401dd60e4b876d (diff)
downloadthird_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.zip
third_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.tar.gz
third_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.tar.xz
added remove and reset
Diffstat (limited to 'lib/git/status.rb')
-rw-r--r--lib/git/status.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/git/status.rb b/lib/git/status.rb
index f738644..7dcd284 100644
--- a/lib/git/status.rb
+++ b/lib/git/status.rb
@@ -18,6 +18,10 @@ module Git
def added
@files.select { |k, f| f.type == 'A' }
end
+
+ def deleted
+ @files.select { |k, f| f.type == 'D' }
+ end
def untracked
@files.select { |k, f| f.untracked }