Hello, On Thu 22 Dec 2022 at 05:12PM -07, Sean Whitton wrote: >> For completeness, though, here's a way to implement 'git push --staged' with >> Git plumbing manually: https://stackoverflow.com/a/72582276/615245 >> >> And as for a 'git pop --index' substitute, if the stash contains only the >> index area stuff, it might be as easy as >> >> git diff stash@{0}^..stash@{0} > patch.diff >> git apply --cached patch.diff >> git stash drop > > These references are helpful. I'll investigate further. Here is my patch. It works, except that sometimes the let-binding of process-environment fails, such that the commands affect the normal index rather than the temporary index. Can you see what I'm doing wrong there? Thanks. -- Sean Whitton