Improve PreReceiveHook API to provide new commits

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • 5.0.0
    • Component/s: Enterprise
    • None

      Problem Definition

      When writing a pre-receive hook for Bitbucket, it's quite difficult to get the new commits being pushed, especially if the RefChange is an UPDATE.

      When doing validation on, for example, the commit message of new commits, or validating the commit in some other way, a rev-list command is required to determine which commits are "new" and need to be checked.

      Why should we do this?

      It would be more efficient if Bitbucket provided a way to access these new commits in some way, as all consumers of the API could use the list of Commits provided by Bitbucket, and would not have to fork their own process to get the same information.

              Assignee:
              Michael Heemskerk (Inactive)
              Reporter:
              Felix (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: