2 .\" Title: git-cvsexportcommit
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.40.1.423.g2807bd2c10
10 .TH "GIT\-CVSEXPORTCOMMIT" "1" "04/25/2023" "Git 2\&.40\&.1\&.423\&.g2807bd" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-cvsexportcommit \- Export a single commit to a CVS checkout
35 \fIgit cvsexportcommit\fR [\-h] [\-u] [\-v] [\-c] [\-P] [\-p] [\-a] [\-d <cvsroot>]
36 [\-w <cvs\-workdir>] [\-W] [\-f] [\-m <msgprefix>] [<parent\-commit>] <commit\-id>
41 Exports a commit from Git to a CVS checkout, making it easier to merge patches from a Git repository into a CVS repository\&.
43 Specify the name of a CVS checkout using the \-w switch or execute it from the root of the CVS working copy\&. In the latter case GIT_DIR must be defined\&. See examples below\&.
45 It does its best to do the safe thing, it will check that the files are unchanged and up to date in the CVS checkout, and it will not autocommit by default\&.
47 Supports file additions, removals, and commits that affect binary files\&.
49 If the commit is a merge commit, you must tell \fIgit cvsexportcommit\fR what parent the changeset should be done against\&.
54 Commit automatically if the patch applied cleanly\&. It will not commit if any hunks fail to apply or there were other problems\&.
59 Be pedantic (paranoid) when applying patches\&. Invokes patch with \-\-fuzz=0
64 Add authorship information\&. Adds Author line, and Committer (if different from Author) to the message\&.
69 Set an alternative CVSROOT to use\&. This corresponds to the CVS \-d parameter\&. Usually users will not want to set this, except if using CVS in an asymmetric fashion\&.
74 Force the merge even if the files are not up to date\&.
79 Force the parent commit, even if it is not a direct parent\&.
84 Prepend the commit message with the provided prefix\&. Useful for patch series and the like\&.
89 Update affected files from CVS repository before attempting export\&.
94 Reverse CVS keyword expansion (e\&.g\&. $Revision: 1\&.2\&.3\&.4$ becomes $Revision$) in working CVS checkout before applying patch\&.
99 Specify the location of the CVS checkout to use for the export\&. This option does not require GIT_DIR to be set before execution if the current directory is within a Git repository\&. The default is the value of
100 \fIcvsexportcommit\&.cvsdir\fR\&.
105 Tell cvsexportcommit that the current working directory is not only a Git checkout, but also the CVS checkout\&. Therefore, Git will reset the working directory to the parent commit before proceeding\&.
114 cvsexportcommit\&.cvsdir
116 The default location of the CVS checkout to use for the export\&.
120 Merge one patch into CVS
127 $ export GIT_DIR=~/project/\&.git
128 $ cd ~/project_cvs_checkout
129 $ git cvsexportcommit \-v <commit\-sha1>
130 $ cvs commit \-F \&.msg <files>
138 Merge one patch into CVS (\-c and \-w options)\&. The working directory is within the Git Repo
145 $ git cvsexportcommit \-v \-c \-w ~/project_cvs_checkout <commit\-sha1>
153 Merge pending patches into CVS automatically \(em only if you really know what you are doing
160 $ export GIT_DIR=~/project/\&.git
161 $ cd ~/project_cvs_checkout
162 $ git cherry cvshead myhead | sed \-n \*(Aqs/^+ //p\*(Aq | xargs \-l1 git cvsexportcommit \-c \-p \-v
171 Part of the \fBgit\fR(1) suite