]> source.dussan.org Git - jgit.git/commit
Create NoWorkTreeException for bare repositories 13/1013/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 30 Jun 2010 16:48:36 +0000 (09:48 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 30 Jun 2010 16:48:36 +0000 (09:48 -0700)
commitcb9d8285bacf315e323d41f7bdc42acc8124fe98
tree28d4797185f8934638cdb32880a3d730531c498f
parent515deaf7e503738b4c53c3c2dfd6d7acab3bef18
Create NoWorkTreeException for bare repositories

Using a custom exception type makes it easire for an application
developer to understand why an exception was thrown out of a method
we declare.  To remain compatiable with existing callers, we still
extend off IllegalStateException.

Change-Id: Ideeef2399b11ca460a2dbb3cd80eb76aa0a025ba
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RepositorySetupWorkDirTest.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java
org.eclipse.jgit/src/org/eclipse/jgit/errors/NoWorkTreeException.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java