New post on Continuous Flow
Kata:Ruby:Prime Factors

svn replacement for git stash

I had no idea how dependent I'd become on git's stash function until I needed it while working on a project that uses subversion. I needed to make a quick change to a class to support a change to a schema change to a live server (don't ask), but I was already in the middle of working on another task.

Thankfully, you can approximate git stash by creating a patch file:

% svn diff > WorkInProgress.txt
% svn revert -R .
<make changes>
% svn commit -m "Patched to support server schema change"
% patch -p0 -i WorkInProgress.txt
% rm WorkInProgress.txt

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Chris

Why not use git-svn bridge?

The comments to this entry are closed.