Jesse Glick commented on Task JENKINS-26462

Possible script to move files with history:

#!/bin/bash
set -e
move() {
    mkdir -p $(dirname $2)
    git mv $1 $2
}
move core/src/main/java/hudson/tasks/Maven.java KEEP/src/main/java/hudson/tasks/Maven.java
move core/src/main/java/hudson/tasks/_maven KEEP/src/main/java/hudson/tasks/_maven
move core/src/main/java/jenkins/mvn KEEP/src/main/java/jenkins/mvn
move core/src/main/resources/hudson/tasks/Maven KEEP/src/main/resources/hudson/tasks/Maven
move core/src/main/resources/jenkins/mvn KEEP/src/main/resources/jenkins/mvn
move test/src/test/java/hudson/tasks/MavenTest.java KEEP/src/test/java/hudson/tasks/MavenTest.java
move core/src/test/java/hudson/tasks/_maven KEEP/src/test/java/hudson/tasks/_maven
git ls-files -z | fgrep -v -z -Z KEEP | xargs -0 git rm -q
git mv KEEP/* .
rmdir KEEP
# TODO for debugging:
git st | egrep -i 'maven|mvn'
git reset --hard HEAD
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to