Skip to content

git: Allow --skip= pseudo revision in revisions.go

After Network/Graph view does not show tags which are... (gitlab!164081 - merged), some discrepancies were discovered between the FindAllCommitsRequest RPC and ListCommitsRequest RPC. The first one allows the field skip which, by definition, skip is the number of commits to skip before starting to show the commit output. This allows the Repository network graph to show commits centered by the commit SHA or refname.

To keep this behavior, we should include the --skip pseudo revision in internal/git/revision.go.

This MR adds --skip to the list of allowed pseudo-options so that it becomes possible to skip number commits before starting to show the commit output.

Related to #6368

Merge request reports