Reputation: 181
I have a master branch for stable code, and only allowing fast-forward merge-request merging.
Is there any way in the gitlab or git command line to track the source merge-request of a specific master branch commit?
Or, I have to mark the merge-request info in the commit message and track it manually?
Upvotes: 1
Views: 472
Reputation: 1324967
Git itself would not track a fast-forward merge (except locally, for a limited time, with git reflog
)
Similarly, GitLab won't track fast-forward merges when ff MR are enabled, but you still have the GitLab API to list present and past MR.
However, there is no "fast-forward" field in those queries.
Adding a git notes for instance would be a way to mark such MR.
That is what gitlab-org/gitlab
issue 216351 is requesting.
Upvotes: 1