-
There is no
Branch.javaor persistentBranchentity in theonedev/serversource. Branches are represented directly as Git refs:Project.getBranchRefs()/getBranchRef()returnRefFacadeobjects wrapping JGit refs.The contributor shown on the branches page is derived from the branch tip commit’s author and committer (
RevCommit.getAuthorIdent()/getCommitterIdent()), so it identifies the latest commit, not the branch creator or owner.For pushes,
GitPostReceiveCallbackattaches the authenticated OneDev user to a transientRefUpdatedevent. Listeners can use that user (for example, the branch-update trigger’s “pushed by” condition), but it is not persisted as an author property of the branch.GitService.createBranch()also emitsRefUpdatedwithout a user.So current author tracking is commit-level, with pusher identity available during ref-update processing; OneDev does not persist a branch creator/author or last-pusher record. Adding that concept would require new persistent metadata rather than extending an existing
Branchentity. -
Previous Value Current Value Open
Closed
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Find the Branch entity class to understand current author tracking