sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
616 stars 66 forks source link

[FEATURE] Get merge/diff tool config from git #181

Closed lgranie closed 2 weeks ago

lgranie commented 3 weeks ago

Could be nice to init the merge/diff tool config from gitconfig. For exemple : [merge] tool = p4merge conflictStyle = diff3 [mergetool "p4merge"] cmd = p4merge.exe -dw -tw 4 -le win "$BASE" "$LOCAL" "$REMOTE" "$MERGED" [diff] tool = p4merge colorMoved = default [difftool "p4merge"] cmd = p4merge.exe -dw -tw 4 -le win "$BASE" "$LOCAL" "$REMOTE" "$MERGED"

love-linger commented 3 weeks ago

I've pushed a commit that changes the Custom mode to Use Git Settings, which means you need not config difftool/mergetool commands in this app.

image

love-linger commented 3 weeks ago

You can try it from https://github.com/sourcegit-scm/sourcegit/actions/runs/9558840357

lgranie commented 2 weeks ago

Hi, I have got a "[$home]\AppData\Local\Temp/git-blob-b58684/[myfile]" is invalid The file does not exist

lgranie commented 2 weeks ago

And "Custom" disappeared

love-linger commented 2 weeks ago

And "Custom" disappeared

Yes, as I said, Custom has been replaced with Use Git Settings. It means there are only two ways to use external difftool/mergetool:

Hi, I have got a "[$home]\AppData\Local\Temp/git-blob-b58684/[myfile]" is invalid The file does not exist

This file is created by git difftool or git mergetool command.

love-linger commented 2 weeks ago

I've tested the p4merge, and can not re-produce the issue your video shows.

https://github.com/sourcegit-scm/sourcegit/assets/4075673/496e433f-39b9-429b-b35d-a86620cc6fa6

love-linger commented 2 weeks ago

I've add the P4Merge to the build-in external merge/diff tool. You can try from this build https://github.com/sourcegit-scm/sourcegit/actions/runs/9607351924