Use dashless git commands in setgitperms.perl
[git/dscho.git] / Documentation / git-cvsexportcommit.txt
blob2da8588f4fd6edb842a9824181165b3f043ec87b
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] [-u] [-v] [-c] [-P] [-p] [-a] [-d cvsroot]
12         [-w cvsworkdir] [-W] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
15 DESCRIPTION
16 -----------
17 Exports a commit from GIT to a CVS checkout, making it easier
18 to merge patches from a git repository into a CVS repository.
20 Specify the name of a CVS checkout using the -w switch or execute it
21 from the root of the CVS working copy. In the latter case GIT_DIR must
22 be defined. See examples below.
24 It does its best to do the safe thing, it will check that the files are
25 unchanged and up to date in the CVS checkout, and it will not autocommit
26 by default.
28 Supports file additions, removals, and commits that affect binary files.
30 If the commit is a merge commit, you must tell 'git-cvsexportcommit' what
31 parent the changeset should be done against.
33 OPTIONS
34 -------
36 -c::
37         Commit automatically if the patch applied cleanly. It will not
38         commit if any hunks fail to apply or there were other problems.
40 -p::
41         Be pedantic (paranoid) when applying patches. Invokes patch with
42         --fuzz=0
44 -a::
45         Add authorship information. Adds Author line, and Committer (if
46         different from Author) to the message.
48 -d::
49         Set an alternative CVSROOT to use.  This corresponds to the CVS
50         -d parameter.  Usually users will not want to set this, except
51         if using CVS in an asymmetric fashion.
53 -f::
54         Force the merge even if the files are not up to date.
56 -P::
57         Force the parent commit, even if it is not a direct parent.
59 -m::
60         Prepend the commit message with the provided prefix.
61         Useful for patch series and the like.
63 -u::
64         Update affected files from CVS repository before attempting export.
66 -w::
67         Specify the location of the CVS checkout to use for the export. This
68         option does not require GIT_DIR to be set before execution if the
69         current directory is within a git repository.  The default is the
70         value of 'cvsexportcommit.cvsdir'.
72 -W::
73         Tell cvsexportcommit that the current working directory is not only
74         a Git checkout, but also the CVS checkout.  Therefore, Git will
75         reset the working directory to the parent commit before proceeding.
77 -v::
78         Verbose.
80 CONFIGURATION
81 -------------
82 cvsexportcommit.cvsdir::
83         The default location of the CVS checkout to use for the export.
85 EXAMPLES
86 --------
88 Merge one patch into CVS::
90 ------------
91 $ export GIT_DIR=~/project/.git
92 $ cd ~/project_cvs_checkout
93 $ git cvsexportcommit -v <commit-sha1>
94 $ cvs commit -F .msg <files>
95 ------------
97 Merge one patch into CVS (-c and -w options). The working directory is within the Git Repo::
99 ------------
100         $ git cvsexportcommit -v -c -w ~/project_cvs_checkout <commit-sha1>
101 ------------
103 Merge pending patches into CVS automatically -- only if you really know what you are doing::
105 ------------
106 $ export GIT_DIR=~/project/.git
107 $ cd ~/project_cvs_checkout
108 $ git cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git cvsexportcommit -c -p -v
109 ------------
111 Author
112 ------
113 Written by Martin Langhoff <martin@catalyst.net.nz> and others.
115 Documentation
116 --------------
117 Documentation by Martin Langhoff <martin@catalyst.net.nz> and others.
121 Part of the linkgit:git[1] suite