]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
Teach diff that modified submodule directory is dirty
authorJunio C Hamano <gitster@pobox.com>
Sat, 16 Jan 2010 17:42:53 +0000 (18:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Jan 2010 00:40:56 +0000 (16:40 -0800)
commit8e08b4198c40cd6d3a5d1a7e60a599adabece08e
treebb1809acf909c66a5632185c1cddb7ac83517d45
parentee6fc514f2df821c2719cc49499a56ef2fb136b0
Teach diff that modified submodule directory is dirty

A diff run in superproject only compares the name of the commit object
bound at the submodule paths.  When we compare with a work tree and the
checked out submodule directory is dirty (e.g. has either staged or
unstaged changes, or has new files the user forgot to add to the index),
show the work tree side as "dirty".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4027-diff-submodule.sh