git/list[1] front-page[2] threads[3] people[4] search[5] about
 

An option to ignore submodules in stash push?

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Feb 6, 2018, 15:56 UTC
Message-ID
<CAHd499A26paeZ=WgpdEkU233XbMrfVhgPGB3FHwaFObRKVqQDg@mail.gmail.com>

I haven't seen such an option, but I think it would be nice to be able to ignore submodules when creating a stash. When I stash changes in a directory, almost always I intend to only stash real files, not modified submodules. When I pop the stash later, it gets disrupted due to submodule conflicts. To avoid getting the conflicts in the first place, it would be nice to somehow specify:

$ git stash push --no-submodules -- MyDirectory/
Would this make sense?
Next: Stefan Beller
Message 1 of 2 in “An option to ignore submodules in stash push?”
  1. Robert DaileyFeb 6, 2018
  2. Stefan BellerFeb 6, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.