author | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Jan 2010 17:42:53 +0000 (18:42 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 17 Jan 2010 00:40:56 +0000 (16:40 -0800) | ||
commit | 8e08b4198c40cd6d3a5d1a7e60a599adabece08e | |
tree | bb1809acf909c66a5632185c1cddb7ac83517d45 | tree | snapshot |
parent | ee6fc514f2df821c2719cc49499a56ef2fb136b0 | commit | diff |
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>
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 | diff | blob | history | |
t/t4027-diff-submodule.sh | diff | blob | history |