SymLinks

Leon Pollak leonp at plris.com
Wed Dec 9 15:45:08 GMT 2015


On Wednesday 09 December 2015 09:37:05 Matthew Woehlke wrote:
> On 2015-12-09 03:58, Leon Pollak wrote:
> > I want to keep to versions of the source - old and new.
> > I switch between them switching links from foo.cpp.old to foo.cpp.new.
> > I will be very thankful for alternative approaches recommended.
> 
> Is your code in a git repository? Considering that there are many and
> better ways to deal with this sort of thing in git, my guess would be
> "no". If not, do yourself a favor and keep your code in a git
> repository. (Do this for *any* non-trivial code, even stuff you never
> expect to publish. That's what I do. It's just so easy to use git that
> the value of having your history - and being able to do things like
> branch switches - is more than worth it.)
> 
> If yes... create 'old' and 'new' branches or (per Sven's suggestion) use
> git stash. Don't forget you can always use 'git commit -a --amend -m
> WIP' to quickly save your changes on one branch without needing to worry
> immediately about "clean" history while you are working.

Thank you, Matthew.
I do not use git at all, but SVN.
It seems to me too complicated to use version system for some tests I should 
like to perform. I wanted some simple way to switch between two variants of 
the same file...
Thanks again.
-- 
Leon



More information about the KDevelop mailing list