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

error(?) in "man git-stash" regarding "--keep-index"

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
May 18, 2018, 09:37 UTC
Message-ID
<alpine.LFD.2.21.1805180534170.6786@localhost.localdomain>
  toward the bottom of "man git-stash", one reads part of an example:
  # ... hack hack hack ...
  $ git add --patch foo            # add just first part to the index
  $ git stash push --keep-index    # save all other changes to the stash
                                              ^^^^^ ???

i thought that, even if "--keep-index" left staged changes in the index, it still included those staged changes in the stash. that's not the impression one gets from the above.

rday
Next: Martin Ågren
Message 1 of 9 in “error(?) in "man git-stash" regarding "--keep-index"”
  1. Robert P. J. DayMay 18, 2018
  2. Martin ÅgrenMay 18, 2018
  3. Robert P. J. DayMay 18, 2018
  4. Martin ÅgrenMay 18, 2018
  5. Sybille PetersMay 18, 2018
  6. Robert P. J. DayMay 18, 2018
  7. Martin ÅgrenMay 18, 2018
  8. Sybille PetersMay 19, 2018
  9. Robert P. J. DayMay 18, 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.