Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with git mergetool? #83

Closed
chipbite opened this issue Jun 26, 2024 · 1 comment
Closed

Not working with git mergetool? #83

chipbite opened this issue Jun 26, 2024 · 1 comment
Labels

Comments

@chipbite
Copy link

scmpuff seems to be not working with mergetool, I cant get git mergetool 3 to work?

Hi! Thanks for a great timesaver!

I've tried to use the scmpuff numbering for merging, but it seems it does not work.

Am I doing it wrong or shall I try the env variables instead? Any ideas/tips?

BR! /marcus

@mroth mroth added the question label Feb 14, 2025
@mroth
Copy link
Owner

mroth commented Feb 14, 2025

Hi @chipbite sincere apologies for the delay, I had not been that actively monitoring this repo while dealing with some life issues.

You are correct, mergetool is not currently aliased by scmpuff. The current aliased commands are effectively determined by the shell snippet:

git () {
        case $1 in
                (commit | blame | log | rebase | merge) scmpuff exec -- "$SCMPUFF_GIT_CMD" "$@" ;;
                (checkout | diff | rm | reset | restore) scmpuff exec --relative -- "$SCMPUFF_GIT_CMD" "$@" ;;
                (add) scmpuff exec -- "$SCMPUFF_GIT_CMD" "$@"
                        scmpuff_status ;;
                (*) "$SCMPUFF_GIT_CMD" "$@" ;;
        esac
}

The aliased commands being in the parentheses.

You can use the $e1 etc environmental variables for non-aliased commands.

@mroth mroth closed this as completed Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants