[go: up one dir, main page]

Skip to content

Option to use the --follow flag for history with git log

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Hi,

So according to GitLab support request #271443 there are issues with the git log --follow, where commits are missed and it is 10~ times slower in some instances.

Proposal

In order to circumvent this I think it should be possible to choose to use history with or without the --follow flag.

Currently, we use --follow when a single path is passed as a param: https://gitlab.com/gitlab-org/gitlab/blob/53bbdae441392490ef2ffce23d23b3ff43c7da10/app/models/repository.rb#L150. The proposal it to be able to switch the usage in order to have a performance gain in some cases.

Edited by 🤖 GitLab Bot 🤖