From: Jon Seymour Date: Thu, 16 Jun 2005 08:21:28 GMT Subject: Semantics of a workspace checkpoint Message-ID: <2cfc4032050616012146948b49@mail.gmail.com> I'd like to propose these as the semantics for the checkpointing of a workspace On checkpoint, create a file called: .git/checkpoint/ where the contents of the file are: exactly identical to the index file immediately prior to the checkpoint being performed and the treeid is the tree that results from: git-update-cache $(git-diff-files | cut -f2) git-write-tree To restore from the checkpoint, one does: /* magic to remove files that are not in the resulting tree */ git-read-tree -m git-checkout-cache -u -f -a cp .git/checkpoints/ .git/index Comments? -- homepage: http://www.zeta.org.au/~jon/ blog: http://orwelliantremors.blogspot.com/