I’m trying to move my CVS repo to git. I’ve imported all the CVS history to git, but I just need to move across all the changed/new files. Is there an easy way to do this? I’m using debian linux, so would prefer command line tools.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I finally found a way to grab the changed files and copy them into another directory:
Basically, cvs -qn update -d does a mock update (doesn’t change files), piped to grep to only list the changed files, use awk to exclude the M, P, ? etc, output to a file.
Loop over the lines in the new file using the cp –parents to preserve directory structure