Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support TreeEntry.Target for gitlink entries
- Loading branch information
Showing
4 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Diagnostics; | ||
|
||
namespace LibGit2Sharp | ||
{ | ||
/// <summary> | ||
/// Represents a gitlink (a reference to a commit in another Git repository) | ||
/// </summary> | ||
[DebuggerDisplay("{DebuggerDisplay,nq}")] | ||
public class GitLink : GitObject | ||
{ | ||
/// <summary> | ||
/// Needed for mocking purposes. | ||
/// </summary> | ||
protected GitLink() | ||
{ } | ||
|
||
internal GitLink(Repository repo, ObjectId id) | ||
: base(repo, id) | ||
{ | ||
} | ||
|
||
private string DebuggerDisplay | ||
{ | ||
get { return Id.ToString(); } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters