gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Config file for diff settings

Open ilkka opened this issue 3 years ago • 1 comments

I'm on Windows and mostly I'm checking out files with CRLF EOLs and letting git commit them with LFs. This is fine, but it causes gitui's diff view to show all lines as changed unless I ignore whitespace changes in the options popup.

Ideally I'd like gitui to act like the git CLI does, which is to ignore these EOL changes, since core.autocrlf=true. However it'd be enough for basic usage to just be able to always have ignore whitespace set to true via a config file.

ilkka avatar May 05 '22 11:05 ilkka

ok let me look into our core lib if we can ignore line endings in diff (I would assume so).

the other point is worth an entire different ticket, as I would like to to start saving configs inside .git-folder in the future.

extrawurst avatar May 06 '22 08:05 extrawurst

This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 12 '22 09:11 stale[bot]

Other .git/config/.gitconfig settings would be really useful, too, such as diff.context, as I often want more fine-grained diffs that don't group together unrelated but nearby changes.

kkysen avatar Dec 11 '22 20:12 kkysen

done as of #849

extrawurst avatar Feb 21 '23 14:02 extrawurst