diff options
author | Ben Straub <bs@github.com> | 2013-11-24 23:34:59 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-11-24 23:34:59 +0400 |
commit | 4f4819ed9df526e67e103615699a282a75364f59 (patch) | |
tree | 03f6d03fd84c28067fe0c9da8693f873ac1be3de /LibGit2Sharp/Repository.cs | |
parent | a3f95fc9e92aa4bec32f4c4a535b0316ec2ea470 (diff) |
Introduce Repository.Blame
Diffstat (limited to 'LibGit2Sharp/Repository.cs')
-rw-r--r-- | LibGit2Sharp/Repository.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index 624a7eea..bfee7db0 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -588,6 +588,17 @@ namespace LibGit2Sharp } /// <summary> + /// Find where each line of a file originated. + /// </summary> + /// <param name="path">Path of the file to blame.</param> + /// <param name="options">Specifies optional parameters; if null, the defaults are used.</param> + /// <returns>The blame for the file.</returns> + public BlameHunkCollection Blame(string path, BlameOptions options = null) + { + return new BlameHunkCollection(this, Handle, path, options ?? new BlameOptions()); + } + + /// <summary> /// Checkout the specified <see cref="Branch"/>, reference or SHA. /// <para> /// If the committishOrBranchSpec parameter resolves to a branch name, then the checked out HEAD will |