blob: d30435a9e4c6ec9797110869c202aea2f8e257a1 [file] [log] [blame]
Martin Langhoff5e0306a2005-11-07 17:57:08 +13001git-cvsexportcommit(1)
Junio C Hamano79f6ac72005-11-07 17:53:06 -08002======================
Martin Langhoff5e0306a2005-11-07 17:57:08 +13003
4NAME
5----
6git-cvsexportcommit - Export a commit to a CVS checkout
7
8
9SYNOPSIS
10--------
Jonas Fonseca353ce812005-12-31 18:37:15 +010011'git-cvsexportcommmit' [-h] [-v] [-c] [-p] [PARENTCOMMIT] COMMITID
Martin Langhoff5e0306a2005-11-07 17:57:08 +130012
13
14DESCRIPTION
15-----------
16Exports a commit from GIT to a CVS checkout, making it easier
17to merge patches from a git repository into a CVS repository.
18
19Execute it from the root of the CVS working copy. GIT_DIR must be defined.
Martin Langhoff1506fc32006-01-30 19:34:15 +130020See examples below.
Martin Langhoff5e0306a2005-11-07 17:57:08 +130021
22It does its best to do the safe thing, it will check that the files are
23unchanged and up to date in the CVS checkout, and it will not autocommit
24by default.
25
26Supports file additions, removals, and commits that affect binary files.
27
28If the commit is a merge commit, you must tell git-cvsapplycommit what parent
29should the changeset be done against.
30
31OPTIONS
32-------
33
34-c::
35 Commit automatically if the patch applied cleanly. It will not
36 commit if any hunks fail to apply or there were other problems.
37
38-p::
39 Be pedantic (paranoid) when applying patches. Invokes patch with
40 --fuzz=0
41
42-v::
43 Verbose.
44
Martin Langhoff1506fc32006-01-30 19:34:15 +130045EXAMPLES
46--------
47
48Merge 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
57Merge 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
Martin Langhoff5e0306a2005-11-07 17:57:08 +130065Author
66------
67Written by Martin Langhoff <martin@catalyst.net.nz>
68
69Documentation
70--------------
71Documentation by Martin Langhoff <martin@catalyst.net.nz>
72
73GIT
74---
75Part of the gitlink:git[7] suite
76