git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git diff --numstat <branch> always shows dirty submodules
@ 2011-11-12 13:29 Gelonida N
  2011-11-12 20:02 ` Jens Lehmann
  0 siblings, 1 reply; 3+ messages in thread
From: Gelonida N @ 2011-11-12 13:29 UTC (permalink / raw)
  To: git

Hi,

I recently started using submodules and they behave mostly as I like to.


Normally I use diff --numstat <branch>
to check quickly whether I am aligned with another branch or not.

The (for me) annoying feature of submodules is, that they are always
reported to be different due to files, which are not under git.


I type git diff --numstat master
I get
1       1       mysubmodule


Now I check the differences with git diff master mysubmodule
diff --git a/mysubmodule b/mysubmodule
index 1382b73..f4f1f1d 160000
--- a/mysubmodule
+++ b/mysubmodule
@@ -1 +1 @@
-Subproject commit xxxxxxxxx
+Subproject commit xxxxxxxxx-dirty

So the only difference (which I wasn't interested in) is, that the
submodule is dirty.


Is there any quick way flag / helper script / . . .
to show differences between two branches without raising the fact, that
submodules are dirty?

>From a user perspective I don't see why this is reported.
I am not being warned about dirty files in the top level repository

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-13  0:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-12 13:29 git diff --numstat <branch> always shows dirty submodules Gelonida N
2011-11-12 20:02 ` Jens Lehmann
2011-11-13  0:45   ` Gelonida N

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).