Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/Documentation/git-cvsexportcommit.adoc # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / Documentation / git-cvsexportcommit.adoc` 118 lines ยท 3222 bytes Raw Blame History 1 git-cvsexportcommit(1) 2 ====================== 3 4 NAME 5 ---- 6 git-cvsexportcommit - Export a single commit to a CVS checkout 7 8 9 SYNOPSIS 10 -------- 11 [verse] 12 'git cvsexportcommit' [-h] [-u] [-v] [-c] [-P] [-p] [-a] [-d ] 13 [-w ] [-W] [-f] [-m ] [] 14 15 16 DESCRIPTION 17 ----------- 18 Exports a commit from Git to a CVS checkout, making it easier 19 to merge patches from a Git repository into a CVS repository. 20 21 Specify the name of a CVS checkout using the -w switch or execute it 22 from the root of the CVS working copy. In the latter case GIT_DIR must 23 be defined. See examples below. 24 25 It does its best to do the safe thing, it will check that the files are 26 unchanged and up to date in the CVS checkout, and it will not autocommit 27 by default. 28 29 Supports file additions, removals, and commits that affect binary files. 30 31 If the commit is a merge commit, you must tell 'git cvsexportcommit' what 32 parent the changeset should be done against. 33 34 OPTIONS 35 ------- 36 37 -c:: 38 Commit automatically if the patch applied cleanly. It will not 39 commit if any hunks fail to apply or there were other problems. 40 41 -p:: 42 Be pedantic (paranoid) when applying patches. Invokes patch with 43 --fuzz=0 44 45 -a:: 46 Add authorship information. Adds Author line, and Committer (if 47 different from Author) to the message. 48 49 -d:: 50 Set an alternative CVSROOT to use. This corresponds to the CVS 51 -d parameter. Usually users will not want to set this, except 52 if using CVS in an asymmetric fashion. 53 54 -f:: 55 Force the merge even if the files are not up to date. 56 57 -P:: 58 Force the parent commit, even if it is not a direct parent. 59 60 -m:: 61 Prepend the commit message with the provided prefix. 62 Useful for patch series and the like. 63 64 -u:: 65 Update affected files from CVS repository before attempting export. 66 67 -k:: 68 Reverse CVS keyword expansion (e.g. $Revision: 1.2.3.4$ 69 becomes $Revision$) in working CVS checkout before applying patch. 70 71 -w:: 72 Specify the location of the CVS checkout to use for the export. This 73 option does not require GIT_DIR to be set before execution if the 74 current directory is within a Git repository. The default is the 75 value of 'cvsexportcommit.cvsdir'. 76 77 -W:: 78 Tell cvsexportcommit that the current working directory is not only 79 a Git checkout, but also the CVS checkout. Therefore, Git will 80 reset the working directory to the parent commit before proceeding. 81 82 -v:: 83 Verbose. 84 85 CONFIGURATION 86 ------------- 87 cvsexportcommit.cvsdir:: 88 The default location of the CVS checkout to use for the export. 89 90 EXAMPLES 91 -------- 92 93 Merge one patch into CVS:: 94 + 95 ------------ 96 $ export GIT_DIR=~/project/.git 97 $ cd ~/project_cvs_checkout 98 $ git cvsexportcommit -v 99 $ cvs commit -F .msg 100 ------------ 101 102 Merge one patch into CVS (-c and -w options). The working directory is within the Git Repo:: 103 + 104 ------------ 105 $ git cvsexportcommit -v -c -w ~/project_cvs_checkout 106 ------------ 107 108 Merge pending patches into CVS automatically -- only if you really know what you are doing:: 109 + 110 ------------ 111 $ export GIT_DIR=~/project/.git 112 $ cd ~/project_cvs_checkout 113 $ git cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git cvsexportcommit -c -p -v 114 ------------ 115 116 GIT 117 --- 118 Part of the linkgit:git[1] suite