# Patchpal GUI Advanced Usage

## Table of Contents

- [Using as Git Mergetool](#using-as-git-mergetool)

## Using as Git Mergetool

Patchpal has a built-in support for `git mergetool` workflow. Be aware that Patchpal will be
launched repeatedly for each file with conflict. This is a git limitation. It is recommended
to use Patchpal's [native merge conflict resolution](Usage.md#resolving-git-merge-conflicts)
instead, as it is more powerful.

If you prefer the `git mergetool` workflow, you can configure it:

```bash
git config --global mergetool.patchpal.cmd 'patchpal --mergetool "$BASE" "$LOCAL" "$REMOTE" "$MERGED"'
git config --global mergetool.patchpal.hideResolved false
git config --global mergetool.patchpal.trustExitCode true
```

Then invoke it during a conflict:

```bash
git mergetool -t patchpal
```
