beginning to write functions for svn like git