From: Junio C Hamano Date: Mon, 01 Mar 2010 19:44:38 GMT Subject: Re: Better cooperation between checkouts and stashing Message-ID: <7vk4tvsu6x.fsf@alter.siamese.dyndns.org> In-Reply-To: <4b8c0420.5544f10a.2eb2.ffffb4c4@mx.google.com> Michael Witten writes: > Markus Elfring's goal (I think) is to associate local modifications with > a particular branch, *not* carry them across branches; You fooled me by having "stash pop" in the same script after you wrote 'git checkout "$@"' to switch branches. If you want to have per-branch stash, that is a totally independent problem, and I'd suggest using real refs ($GIT_DIR/refs/stashes/$branch_name) instead of the md5 hack, if that is the motivation.