diff options
author | Tim Clem <timothy.clem@gmail.com> | 2011-03-28 21:22:36 +0400 |
---|---|---|
committer | Tim Clem <timothy.clem@gmail.com> | 2011-03-30 20:30:59 +0400 |
commit | b6da353cd6d8de20427bc0218e33b4dd7add705a (patch) | |
tree | d24eb8ade2a1d7454e1442b5cc18d0bc90a76484 /LibGit2Sharp/Blob.cs | |
parent | 88c98c0f1f01b65c40d86fa044c9fd7e258b4402 (diff) |
add back in basic object lookup with new interop
New Lookup API includes:
TryLookup
TryLookup<T>
Lookup
Lookup<T>
Looks like VS2010 can deal with optional params for .net 3.5 projects,
so NET35 ifdefs not necessary yet.
Diffstat (limited to 'LibGit2Sharp/Blob.cs')
-rw-r--r-- | LibGit2Sharp/Blob.cs | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/LibGit2Sharp/Blob.cs b/LibGit2Sharp/Blob.cs index 58f58dc4..bd1058a3 100644 --- a/LibGit2Sharp/Blob.cs +++ b/LibGit2Sharp/Blob.cs @@ -1,34 +1,38 @@ -/* - * The MIT License - * - * Copyright (c) 2011 LibGit2Sharp committers - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ +#region Copyright (c) 2011 LibGit2Sharp committers + +// The MIT License +// +// Copyright (c) 2011 LibGit2Sharp committers +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +#endregion + +using System; namespace LibGit2Sharp { public class Blob : GitObject { - public Blob(string objectId) - : base(objectId, ObjectType.Blob) + internal Blob(IntPtr obj, GitOid oid, Repository repo) + : base(obj, oid, repo) { } } -} +}
\ No newline at end of file |