@matheusbsbs / matheus-bagliano / commits / 1506fc34f7
Fork 0

cvsexportcommit: add some examples to the documentation

Updated with Randall Schwartz's suggestion. Signed-off-by: Martin Langhoff <martin@catalyst.net.nz> Signed-off-by: Junio C Hamano <junkio@cox.net>

Martin Langhoff committed Jan 30, 2006 at 19:34 UTC 1506fc34f7585880aeeb12b5fdfe2de4800f9df5
1 file changed +21
Documentation/git-cvsexportcommit.txt
+21
@@ -17,6 +17,7 @@ Exports a commit from GIT to a CVS checkout, making it easier
17 to merge patches from a git repository into a CVS repository.
18
19 Execute it from the root of the CVS working copy. GIT_DIR must be defined.
20 +See examples below.
21
22 It does its best to do the safe thing, it will check that the files are
23 unchanged and up to date in the CVS checkout, and it will not autocommit
@@ -41,6 +42,26 @@ OPTIONS
42 -v::
43 Verbose.
44
45 +EXAMPLES
46 +--------
47 +
48 +Merge one patch into CVS::
49 ++
50 +------------
51 +$ export GIT_DIR=~/project/.git
52 +$ cd ~/project_cvs_checkout
53 +$ git-cvsexportcommit -v <commit-sha1>
54 +$ cvs commit -F .mgs <files>
55 +------------
56 +
57 +Merge pending patches into CVS automatically -- only if you really know what you are doing ::
58 ++
59 +------------
60 +$ export GIT_DIR=~/project/.git
61 +$ cd ~/project_cvs_checkout
62 +$ git-cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git-cvsexportcommit -c -p -v
63 +------------
64 +
65 Author
66 ------
67 Written by Martin Langhoff <martin@catalyst.net.nz>