#!/bin/bash

# FIXME exit status - ok if there are some not added, etc.

cd "`darcs_root`"
not=1 exec darcs_entries "$@" | sort |
(
	if [ -e .darcs_ignore ] ; then
		comm -2 -3 - .darcs_ignore
	else
		cat
	fi
) |
comm -2 -3 - <(dpending)
