Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Request for getLatestCommits(int commitsBack) method #104

Open
@webbby

Description

There are cases where a user:A commits and wants to get the commit meta immediately after the operation.
However under race conditions another user:B commits as well before user:A acquires the meta data.
Thus by the time user:A executes $commitId = $repo->getLastCommitId() the last commit pointer is moved and user:A receives the commitId of user:B commit.

Please, if possible, provide any of these methods. Any of them would work:

$commitsBack = 10; // if commits number is smaller than 10 get all available
$commitIdsArray = $repo->getLatestCommitIds($commitsBack); // returns array of commit_ids 
// or
$commitsArray = $repo->getLatestCommits($commitsBack); // returns array of Commit:class instances 

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /