Commit 231c618d authored by Campbell Barton's avatar Campbell Barton

add html readme

parent d038064e
This diff is collapsed.
......@@ -21,8 +21,32 @@ Example conversion command.
REPOSURGEON="pypy reposurgeon" time ./convert
TODO. more docs.
Reposurgeon Quickstart
======================
For anyone who is reading this page and never used reposurgeon, heres a quick way to convert your repo.
*From the command line dump*
.. code-block::
svnadmin dump /path/to/my/repo > mysvn.dump
*Create a lift file: myproject.lift*
.. code-block::
read mysvn.dump
prefer git
rebuild mynewrepo
*Run the conversion*
.. code-block::
reposurgeon "script blender.lift"
Now You’ll now have ``./mynewrepo/`` as a new git repo.
Useful Commands
===============
......@@ -81,6 +105,17 @@ List all files ever committed to a git repo.
cat allfiles.txt | grep -v $"\.h$\|\.py$\|\.mk$\|\.cpp$\|\.cc$\|\.c$\|\.f\|\.hpp$\|\.txt$\|\.bat$\|\.vcproj$\|\.osl$\|\.ico$\|Makefile$\|SConscript$\|\.sln$\|\.rst$\|\.spi1d\|\.dsp\|\.dsw\|\.cmake$"
List branches sorted by date
----------------------------
When reviewing brancghes I found it handy to list by date rather then alphabetically.
.. code-block::
git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/
List all commits containing a root path
---------------------------------------
......@@ -102,6 +137,16 @@ most likely these can be removed.
git log --all --max-parents=1 --format="format:%H" --shortstat | pcregrep -v -M "^[a-z0-9]+\n " | egrep -v '^\s*$'
List all commits with 3+ parents
--------------------------------
These commits are often faulty merges
.. code-block::
git log --min-parents=3 --all
Uploading the repo
------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment