Skip to content
/ rcs2git Public

Converts a tree of RCS-tracked files to a git repository

Notifications You must be signed in to change notification settings

knuta/rcs2git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

rcs2git

Converts a tree of RCS-tracked files to a git repository.

This script will:

  • Convert all rcs-tracked files, preserving history
  • Do an initial commit of all untracked files, with the message "Adding previously untracked file"

Please note that the conversion happens in-place. Make sure you're working on a copy!

Example usage

# Make a copy of the folder
cp -a folder folder-copy
# Enter the folder and copy it
(cd folder-copy && git init && rcs2git)
# Create a third directory with a clean checkout, to get rid of RCS files
mkdir folder-git
cp -a folder-copy/.git folder-git
(cd folder-git && git reset --hard)
# Sanity check
diff -ur folder folder-git

Alternatives

There are other RCS to Git converters out there, which may or may not work better for your use-case. These are the ones I know of:

About

Converts a tree of RCS-tracked files to a git repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages