Skip to content

Commit

Permalink
updating to gitsharp v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
henon committed Sep 27, 2009
1 parent ed7dabe commit 09117c7
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 3,049 deletions.
18 changes: 9 additions & 9 deletions Browser.xaml.cs
Expand Up @@ -42,9 +42,9 @@ private void OnLoadRepository(object sender, RoutedEventArgs e)
var repo = Repository.Open(url);
var head = repo.OpenCommit(repo.Head.ObjectId) as Commit;
m_repository = repo;
var tags = repo.Tags.Values.Select(@ref => repo.MapTag(@ref.Name, @ref.ObjectId));
var tags = repo.getTags().Values.Select(@ref => repo.MapTag(@ref.Name, @ref.ObjectId));
//var branches = repo.Branches.Values.Select(@ref => repo.MapCommit(@ref.ObjectId));
m_refs.ItemsSource = repo.Refs.Values;
m_refs.ItemsSource = repo.getAllRefs().Values;
DisplayCommit(head, "HEAD");
ReloadConfiguration();
}
Expand All @@ -54,7 +54,7 @@ private void SelectObject(TreeEntry node)
if (node.IsBlob)
{
//var blob = node as Blob;
var text = Encoding.UTF8.GetString(m_repository.OpenBlob(node.Id).getBytes()); // TODO: better interface for blobs
var text = Encoding.UTF8.GetString(m_repository.OpenBlob(node.Id).Bytes); // TODO: better interface for blobs
m_object.Document.Blocks.Clear();
var p = new Paragraph();
p.Inlines.Add(text);
Expand All @@ -79,12 +79,12 @@ private void SelectRef(Ref r)
if (r == null)
return;
var obj = m_repository.OpenObject(r.ObjectId);
if (obj.getType() == Constants.OBJ_COMMIT)
if (obj.Type == Constants.OBJ_COMMIT)
{
DisplayCommit(m_repository.MapCommit(r.ObjectId), "Commit history of " + r.Name);
return;
}
else if (obj.getType() == Constants.OBJ_TAG)
else if (obj.Type == Constants.OBJ_TAG)
{
var tag = m_repository.MapTag(r.Name, r.ObjectId);
if (tag.TagId == r.ObjectId) // it sometimes happens to have self referencing tags
Expand All @@ -95,11 +95,11 @@ private void SelectRef(Ref r)
DisplayCommit(tagged_commit, "Commit history of " + tag.TagName);
return;
}
else if (obj.getType() == Constants.OBJ_TREE)
else if (obj.Type == Constants.OBJ_TREE)
{
// hmm, display somehow
}
else if (obj.getType() == Constants.OBJ_BLOB)
else if (obj.Type == Constants.OBJ_BLOB)
{
// hmm, display somehow
}
Expand Down Expand Up @@ -165,14 +165,14 @@ private void OnLoadConfiguration(object sender, RoutedEventArgs e)

private void ReloadConfiguration()
{
m_repository.Config.Load();
m_repository.Config.load();
m_config_tree.ItemsSource = null;
//m_config_tree.ItemsSource = m_repository.Config.Sections;
}

private void SaveConfiguration()
{
m_repository.Config.Save();
m_repository.Config.save();
ReloadConfiguration();
}

Expand Down
Binary file added depend/DiffieHellman.dll
Binary file not shown.
Binary file modified depend/GitSharp.dll
Binary file not shown.
Binary file removed depend/GitSharp.pdb
Binary file not shown.
Binary file removed depend/MbUnit.dll
Binary file not shown.
Binary file removed depend/MbUnit.pdb
Binary file not shown.
3,040 changes: 0 additions & 3,040 deletions depend/MbUnit.xml

This file was deleted.

Binary file added depend/Org.Mentalis.Security.dll
Binary file not shown.
Binary file added depend/Tamir.SharpSSH.dll
Binary file not shown.
Binary file removed depend/Winterdom.IO.FileMap.pdb
Binary file not shown.

0 comments on commit 09117c7

Please sign in to comment.