6 git-cvsexportcommit - Export a single commit to a CVS checkout
11 'git-cvsexportcommit' [-h] [-u] [-v] [-c] [-P] [-p] [-a] [-d cvsroot] [-w cvsworkdir] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
16 Exports a commit from GIT to a CVS checkout, making it easier
17 to merge patches from a git repository into a CVS repository.
19 Specify the name of a CVS checkout using the -w switch or execute it
20 from the root of the CVS working copy. In the latter case GIT_DIR must
21 be defined. See examples below.
23 It does its best to do the safe thing, it will check that the files are
24 unchanged and up to date in the CVS checkout, and it will not autocommit
27 Supports file additions, removals, and commits that affect binary files.
29 If the commit is a merge commit, you must tell git-cvsexportcommit what parent
30 should the changeset be done against.
36 Commit automatically if the patch applied cleanly. It will not
37 commit if any hunks fail to apply or there were other problems.
40 Be pedantic (paranoid) when applying patches. Invokes patch with
44 Add authorship information. Adds Author line, and Committer (if
45 different from Author) to the message.
48 Set an alternative CVSROOT to use. This corresponds to the CVS
49 -d parameter. Usually users will not want to set this, except
50 if using CVS in an asymmetric fashion.
53 Force the merge even if the files are not up to date.
56 Force the parent commit, even if it is not a direct parent.
59 Prepend the commit message with the provided prefix.
60 Useful for patch series and the like.
63 Update affected files from CVS repository before attempting export.
66 Specify the location of the CVS checkout to use for the export. This
67 option does not require GIT_DIR to be set before execution if the
68 current directory is within a git repository. The default is the
69 value of 'cvsexportcommit.cvsdir'.
76 cvsexportcommit.cvsdir::
77 The default location of the CVS checkout to use for the export.
82 Merge one patch into CVS::
85 $ export GIT_DIR=~/project/.git
86 $ cd ~/project_cvs_checkout
87 $ git-cvsexportcommit -v <commit-sha1>
88 $ cvs commit -F .msg <files>
91 Merge one patch into CVS (-c and -w options). The working directory is within the Git Repo::
94 $ git-cvsexportcommit -v -c -w ~/project_cvs_checkout <commit-sha1>
97 Merge pending patches into CVS automatically -- only if you really know what you are doing::
100 $ export GIT_DIR=~/project/.git
101 $ cd ~/project_cvs_checkout
102 $ git-cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git-cvsexportcommit -c -p -v
107 Written by Martin Langhoff <martin@catalyst.net.nz> and others.
111 Documentation by Martin Langhoff <martin@catalyst.net.nz> and others.
115 Part of the linkgit:git[7] suite