Skip to content
Browse files

Renamed methods to get closer to jgit code.

  • Loading branch information...
1 parent bc7b511 commit 2cbcafec480141ed52a65d757753aa781bfac9ba @nulltoken nulltoken committed Sep 26, 2009
Showing with 6 additions and 15 deletions.
  1. +2 −2 GitSharp/GitIndex.cs
  2. +3 −3 GitSharp/RefDatabase.cs
  3. +1 −1 GitSharp/RefRename.cs
  4. +0 −9 GitSharp/Repository.cs
View
4 GitSharp/GitIndex.cs
@@ -135,7 +135,7 @@ public void RereadIfNecessary()
if (_cacheFile.Exists && _cacheFile.LastWriteTime.Ticks != _lastCacheTime)
{
Read();
- Repository.OnIndexChanged();
+ Repository.fireIndexChanged();
}
}
@@ -294,7 +294,7 @@ public void write()
_changed = false;
_statDirty = false;
_lastCacheTime = _cacheFile.LastWriteTime.Ticks;
- Repository.OnIndexChanged();
+ Repository.fireIndexChanged();
}
finally
{
View
6 GitSharp/RefDatabase.cs
@@ -131,7 +131,7 @@ internal void Stored(string origName, string name, ObjectId id, DateTime time)
_looseRefsMTime[name] = time;
SetModified();
}
- Repository.OnRefsChanged();
+ Repository.fireRefsMaybeChanged();
}
/// <summary>
@@ -163,7 +163,7 @@ public void Link(string name, string target)
byte[] content = Constants.encode("ref: " + target + "\n");
LockAndWriteFile(FileForRef(name), content);
UncacheSymRef(name);
- Repository.OnRefsChanged();
+ Repository.fireRefsMaybeChanged();
}
private void UncacheSymRef(string name)
@@ -246,7 +246,7 @@ public Ref ReadRef(string partialName)
// ignore here
}
- Repository.OnRefsChanged();
+ Repository.fireRefsMaybeChanged();
return avail;
}
View
2 GitSharp/RefRename.cs
@@ -147,7 +147,7 @@ public RefResult Rename()
}
else
{
- db.OnRefsChanged();
+ db.fireRefsMaybeChanged();
}
RefLogWriter.append(this, _newToUpdate.Name, "Branch: renamed "
View
9 GitSharp/Repository.cs
@@ -988,11 +988,6 @@ public static string StripWorkDir(FileSystemInfo workDir, FileSystemInfo file)
*/
public static void removeAnyRepositoryChangedListener(RepositoryListener l)
{
- allListeners.Remove(l);
- }
-
- internal void fireRefsMaybeChanged()
- {
allListeners.Remove(l);
}
@@ -1015,10 +1010,6 @@ internal void OnRefsChanged()
{
l.refsChanged(@event);
}
- }
- }
-
- internal void fireIndexChanged()
}
}

0 comments on commit 2cbcafe

Please sign in to comment.
Something went wrong with that request. Please try again.