Поделиться через


TeamFoundationGitCommitService.QueryCommitAuthors Method

Get the distinct commit authors from this repository along with optional count information for the number of commits each has made

Namespace:  Microsoft.TeamFoundation.Git.Server
Assembly:  Microsoft.TeamFoundation.Git.Server (in Microsoft.TeamFoundation.Git.Server.dll)

Syntax

'Declaration
Public Function QueryCommitAuthors ( _
    requestContext As TeamFoundationRequestContext, _
    repository As TfsGitRepository, _
    commitId As Byte(), _
    sortByDate As Boolean, _
    maxCommits As Nullable(Of Integer) _
) As IEnumerable(Of TfsGitCommitUser)
public IEnumerable<TfsGitCommitUser> QueryCommitAuthors(
    TeamFoundationRequestContext requestContext,
    TfsGitRepository repository,
    byte[] commitId,
    bool sortByDate,
    Nullable<int> maxCommits
)
public:
IEnumerable<TfsGitCommitUser^>^ QueryCommitAuthors(
    TeamFoundationRequestContext^ requestContext, 
    TfsGitRepository^ repository, 
    array<unsigned char>^ commitId, 
    bool sortByDate, 
    Nullable<int> maxCommits
)
member QueryCommitAuthors : 
        requestContext:TeamFoundationRequestContext * 
        repository:TfsGitRepository * 
        commitId:byte[] * 
        sortByDate:bool * 
        maxCommits:Nullable<int> -> IEnumerable<TfsGitCommitUser> 
public function QueryCommitAuthors(
    requestContext : TeamFoundationRequestContext, 
    repository : TfsGitRepository, 
    commitId : byte[], 
    sortByDate : boolean, 
    maxCommits : Nullable<int>
) : IEnumerable<TfsGitCommitUser>

Parameters

  • commitId
    Type: array<System.Byte[]

    If non-null, only look at commits from this commit's lineage

  • sortByDate
    Type: System.Boolean

    Passing false causes the returned list to be sorted by name

  • maxCommits
    Type: System.Nullable<Int32>

    Maximum number of commits to examine (from the latest commit) or NULL to examine all commits

Return Value

Type: System.Collections.Generic.IEnumerable<TfsGitCommitUser>

.NET Framework Security

See Also

Reference

TeamFoundationGitCommitService Class

Microsoft.TeamFoundation.Git.Server Namespace