I've got a library checked out as a git submodule in my project and I often make changes in the lib. Every time I commit that change the subsequent git status in the parent repo shows that the submodule has changed. I also use __git_ps1 and so the parent dir prompt shows that there are uncommitted changes. 
parent-project (master *) $ git diff
diff --git a/my-submodule b/my-submodule
index 5eb2e9f..fd40630 160000
--- a/my-submodule
+++ b/my-submodule
@@ -1 +1 @@
-Subproject commit 5eb2e9fdcb85ab5a1f57e622b17cc76e5af749b7
+Subproject commit fd406308851b5521980f4578960c428200c66371
I know of two options:
- git commit submodulefrom the parent which creates unnecessary commits, or
- remove and re-add the submodule which seems like an overkill.
Is there any way to tell the parent repo Update the submodule ref to the latest master and move on? I don't want to refer to a specific git revision, just to the head of master or whatever branch I choose.
Thanks!
 
    