diff options
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 |