blob: 4f3d053889de4a5ba8e6e5d519c014a51220accd [file] [log] [blame]
Junio C Hamano64da9e62005-11-01 19:34:49 -08001#!/bin/sh
2#
3# Copyright (c) 2005 Junio C Hamano
4#
5# Pretend we resolved the heads, but declare our tree trumps everybody else.
6#
Junio C Hamano160252f2005-11-03 01:51:25 -08007
8# We need to exit with 2 if the index does not match our HEAD tree,
9# because the current index is what we will be committing as the
10# merge result.
11
12test "$(git-diff-index --cached --name-status HEAD)" = "" || exit 2
13
Junio C Hamano64da9e62005-11-01 19:34:49 -080014exit 0