Skip to content

Instantly share code, notes, and snippets.

@mbaker3
mbaker3 / Readme.md
Last active November 11, 2024 00:49
Configure Git Console and Fork to use Rider for merge conflict diffs (UnityYAMLMerge)

Rider, with Unity integration, automatically runs UnityYAMLMerge on all YAML files when resolving merge conflicts. This may be preferrable to using a standalone solution that has no awareness of the larger project. If you're looking for a more generic solution that works for many diff tools check out mbaker3/UnityYAMLMerge.

General

Add the following to the .git/config of your repo. This will configure Rider to launch when you execute git mergetool or for any git clients that respect the config file.

[merge]
	tool = unityyamlmerge
[mergetool "unityyamlmerge"]
	trustExitCode = false
	cmd = /Applications/Rider.app/Contents/MacOS/rider merge "$LOCAL" "$REMOTE" "$BASE" "$MERGED"
@mbaker3
mbaker3 / RB-precommit.php
Last active November 18, 2022 08:42 — forked from omnicolor/RB-precommit.php
SVN pre-commit intergration with Review Board
#!/usr/bin/php
<?php
/**
* Pre-commit Subversion script.
*
* Forces the commit message to have a line like
* review: 42
* and checks that the review has received a Ship It! from
* a peer.
* @author Omni Adams <[email protected]>