Add a basic command line implementation of rm
commit9d424a82f34de89920dee8ca4a45d42eafe55724
authorShawn O. Pearce <spearce@spearce.org>
Tue, 12 Aug 2008 01:08:09 +0000 (11 18:08 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 14 Aug 2008 17:33:21 +0000 (14 19:33 +0200)
treecf3ec6141b1e3237a73d28226d0ff4d7d62e995f
parent74b3fa0e5fe464240aa75f2ca76abca4a85615ad
Add a basic command line implementation of rm

Removing entries from the index and from the working directory is a
very trivial operation now that we have DirCacheBuilder able to do
an update of the index, automatically keeping the paths that were
skipped over by the TreeWalk.  Therefore we only need to match the
paths the user wants to remove, and do nothing with them.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.pgm/src/META-INF/services/org.spearce.jgit.pgm.TextBuiltin
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/Rm.java [new file with mode: 0644]