Fix a "label defined but unreferenced" warning.
[git/mingw.git] / Documentation / git-cvsexportcommit.txt
blob27d531b888ef0468022e2ec0780729acc5151147
1 git-cvsexportcommit(1)
2 ======================
4 NAME
5 ----
6 git-cvsexportcommit - Export a single commit to a CVS checkout
9 SYNOPSIS
10 --------
11 'git-cvsexportcommit' [-h] [-v] [-c] [-P] [-p] [-a] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
14 DESCRIPTION
15 -----------
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 Execute it from the root of the CVS working copy. GIT_DIR must be defined. 
20 See examples below.
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 
24 by default.
26 Supports file additions, removals, and commits that affect binary files.
28 If the commit is a merge commit, you must tell git-cvsapplycommit what parent
29 should the changeset be done against. 
31 OPTIONS
32 -------
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.
38 -p::
39         Be pedantic (paranoid) when applying patches. Invokes patch with
40         --fuzz=0
42 -a::
43         Add authorship information. Adds Author line, and Committer (if
44         different from Author) to the message.
46 -f::
47         Force the merge even if the files are not up to date.
49 -P::
50         Force the parent commit, even if it is not a direct parent.
52 -m::
53         Prepend the commit message with the provided prefix. 
54         Useful for patch series and the like.
56 -v::
57         Verbose.
59 EXAMPLES
60 --------
62 Merge one patch into CVS::
64 ------------
65 $ export GIT_DIR=~/project/.git
66 $ cd ~/project_cvs_checkout
67 $ git-cvsexportcommit -v <commit-sha1>
68 $ cvs commit -F .mgs <files> 
69 ------------
71 Merge pending patches into CVS automatically -- only if you really know what you are doing ::
73 ------------
74 $ export GIT_DIR=~/project/.git
75 $ cd ~/project_cvs_checkout
76 $ git-cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git-cvsexportcommit -c -p -v
77 ------------
79 Author
80 ------
81 Written by Martin Langhoff <martin@catalyst.net.nz>
83 Documentation
84 --------------
85 Documentation by Martin Langhoff <martin@catalyst.net.nz>
87 GIT
88 ---
89 Part of the gitlink:git[7] suite