chiark
/
gitweb
/
~mdw
/
adns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
194b32e
)
merge the script's history into the generated history
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 5 May 2014 16:02:07 +0000
(17:02 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 5 May 2014 16:02:07 +0000
(17:02 +0100)
convert
patch
|
blob
|
blame
|
history
diff --git
a/convert
b/convert
index 78d4ac367d25b10e40de389875e275556586948a..91f62d284a991381f73de15d34cb11707f484d75 100755
(executable)
--- a/
convert
+++ b/
convert
@@
-73,17
+73,22
@@
tochiark-1998-11-17
fromchiark-1998-11-28
END
fromchiark-1998-11-28
END
-git checkout master
-scr=cvs-to-git-conversion-script
-cp $base/script/convert $scr
-git add $scr
-git commit -m "$scr: record the script
+(set -e
+ cd $base/script
+ if [ x"`git diff`" != x ]; then
+ git checkout master~0
+ git commit -a -m autocommit
+ git tag -f actual
+ git reset master
+ git checkout master
+ fi)
-Record the script we used to convert the CVS repo to git"
-git
rm $scr
-git
commit -m "$scr: delete the script
+git checkout master
+git
fetch $base/script actual
+git
merge -m 'CVS to git conversion
-We have in fact done the conversion and don't need the script any more."
+Record the scripts etc. we used (and their history) for posterity,
+by binding them into the history.' FETCH_HEAD
git branch -d origin
git tag cvs-to-git-conversion
git branch -d origin
git tag cvs-to-git-conversion