Filter by path(ctrl+s) and git log show different output #4960
-
I just noticed that when I use Enter path to filter by and select a specific file from the list, there are commits not related just to the selected file but to the folder containing that file. Is intended behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
No, that's not intended. Are you sure that you really selected the file and not the folder containing it? (The feature also supports filtering by folders.) |
Beta Was this translation helpful? Give feedback.
-
It is fine when I use git log --follow -M100% . But I'd like to have an option to change the threshold value for Filter by option. |
Beta Was this translation helpful? Give feedback.
-
Ok, but then I'm confused why the
Like I said, we can use the existing config value for that ( |
Beta Was this translation helpful? Give feedback.
No, there's no way to disable it, since it's almost always desirable (unless it misbehaves for some reason).
Note that
--follow
relies on git's rename detection heuristics, so on the command line you could try ifgit log --follow -M100% <path>
makes any difference.We have an option in lazygit to tweak the rename detection threshold (using
(
and)
), but it only has an affect on the display of diffs, it is not used when filtering. We could consider changing this, but then the question is what happens when you change the threshold while filtering is active; reloading the log in that case would be too expensive.