git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Ignore dirty submodule states during stash
@ 2016-05-16  2:07 Vasily Titskiy
  2016-05-16  6:37 ` Stefan Beller
  0 siblings, 1 reply; 6+ messages in thread
From: Vasily Titskiy @ 2016-05-16  2:07 UTC (permalink / raw)
  To: git

Do not save states of submodules as stash should ignore it.

Signed-off-by: Vasily Titskiy <qehgt0@gmail.com>
---
 git-stash.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git-stash.sh b/git-stash.sh
index c7c65e2..b500c44 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -116,7 +116,7 @@ create_stash () {
 			git read-tree --index-output="$TMPindex" -m $i_tree &&
 			GIT_INDEX_FILE="$TMPindex" &&
 			export GIT_INDEX_FILE &&
-			git diff --name-only -z HEAD -- >"$TMP-stagenames" &&
+			git diff --name-only --ignore-submodules -z HEAD -- >"$TMP-stagenames" &&
 			git update-index -z --add --remove --stdin <"$TMP-stagenames" &&
 			git write-tree &&
 			rm -f "$TMPindex"
-- 
2.1.4

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

end of thread, other threads:[~2016-05-17  3:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-16  2:07 [PATCH] Ignore dirty submodule states during stash Vasily Titskiy
2016-05-16  6:37 ` Stefan Beller
2016-05-16 15:46   ` Vasily Titskiy
2016-05-16 16:09     ` Stefan Beller
2016-05-17  3:17       ` Vasily Titskiy
2016-05-16 16:29     ` Johannes Schindelin

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).