]> source.dussan.org Git - jgit.git/commitdiff
Expose repository change event constructors 23/923/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 22 Jun 2010 23:45:26 +0000 (16:45 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 23 Jun 2010 23:54:14 +0000 (16:54 -0700)
Repository implementations outside of .lib need to be able to
create these events and deliver them to listening application code.

Expose and document the constructors so that they are visible when
we move FileRepository into storage.file.FileRepository.

Change-Id: I7fb6e8f4f5fdab683c5ebb5267673aa6d5b560bb
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexChangedEvent.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefsChangedEvent.java

index 3c41e92c4029a7df082a78088d658544278c1140..c866db531e88f295b45842b1f338c0218cdb8e05 100644 (file)
@@ -50,7 +50,13 @@ package org.eclipse.jgit.lib;
  * Currently only a reference to the repository is passed.
  */
 public class IndexChangedEvent extends RepositoryChangedEvent {
-       IndexChangedEvent(final Repository repository) {
+       /**
+        * Create an event describing index changes in a repository.
+        *
+        * @param repository
+        *            the repository whose index (DirCache) recently changed.
+        */
+       public IndexChangedEvent(final Repository repository) {
                super(repository);
        }
 
index 7a7d99cd235f79f00eb1984a0f3dee77e27c9a98..705c6138e32ad50f811f4a0ad8eb444780a6ae4e 100644 (file)
@@ -50,7 +50,13 @@ package org.eclipse.jgit.lib;
  * Currently only a reference to the repository is passed.
  */
 public class RefsChangedEvent extends RepositoryChangedEvent {
-       RefsChangedEvent(final Repository repository) {
+       /**
+        * Create an event describing reference changes in a repository.
+        *
+        * @param repository
+        *            the repository whose references recently changed.
+        */
+       public RefsChangedEvent(final Repository repository) {
                super(repository);
        }