{"thread":{"id":"9806","subject":"git stash usage","startedAt":"2007-09-06T14:20:13Z","lastAt":"2007-09-06T14:20:13Z","messageCount":1,"participants":["Nikodemus Siivola"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"52752","messageId":"6bcc356f0709060720x257aff95x783463c5b23f0b7a@mail.gmail.com","threadId":"9806","inReplyTo":null,"subject":"git stash usage","fromName":"Nikodemus Siivola","fromEmail":"nikodemus@random-state.net","sentAt":"2007-09-06T14:20:13Z","receivedAt":"2007-09-06T14:20:13Z","isPatch":false,"sender":{"key":"nikodemus@random-state.net","avatar":null},"body":"I'm not sure if I understand git-stash correctly.\n\n ...work...\n git stash\n ...quick fix & commit...\n git stash apply\n ...more work...\n\nis my understanding of the normal workflow. If this is\ncorrect, why does \"apply\" leave the stash in the list\nof stashes?\n\n  mkdir git-stash-test\n  cd git-stash-test\n  git init\n  echo foo > save-apply-test.txt\n  git add save-apply-test.txt\n  git commit -m \"foo\"\n  echo bar > save-apply-test.txt\n  git stash\n  echo quux > save-apply-test.txt\n  git commit -a -m \"quux\"\n  git stash apply\n  git commit -a -m \"bar\"\n  # I would expect the list to be empty now, but it isn't.\n  git stash list\n\nIs this intentional?\n\nIt's a bit inconvenient, especially considering that\n\"clear\" removes all the stashes.\n\nI can easily accumulate several stashes, some of which\nare applied and some of which are not -- but have no\nway to easily know which are which.\n\nCheers,\n\n -- Nikodemus\n"}]}