Documentation / git-cvsexportcommit.txton commit git-format-patch -3 (7c49628)
   1git-cvsexportcommit(1)
   2======================
   3
   4NAME
   5----
   6git-cvsexportcommit - Export a commit to a CVS checkout
   7
   8
   9SYNOPSIS
  10--------
  11'git-cvsexportcommit' [-h] [-v] [-c] [-p] [-a] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
  12
  13
  14DESCRIPTION
  15-----------
  16Exports a commit from GIT to a CVS checkout, making it easier
  17to merge patches from a git repository into a CVS repository. 
  18
  19Execute it from the root of the CVS working copy. GIT_DIR must be defined. 
  20See examples below.
  21
  22It does its best to do the safe thing, it will check that the files are 
  23unchanged and up to date in the CVS checkout, and it will not autocommit 
  24by default.
  25
  26Supports file additions, removals, and commits that affect binary files.
  27
  28If the commit is a merge commit, you must tell git-cvsapplycommit what parent
  29should the changeset be done against. 
  30
  31OPTIONS
  32-------
  33
  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.
  37
  38-p::
  39        Be pedantic (paranoid) when applying patches. Invokes patch with
  40        --fuzz=0
  41
  42-a::
  43        Add authorship information. Adds Author line, and Committer (if
  44        different from Author) to the message.
  45
  46-f::
  47        Force the merge even if the files are not up to date.
  48
  49-m::
  50        Prepend the commit message with the provided prefix. 
  51        Useful for patch series and the like.
  52
  53-v::
  54        Verbose.
  55
  56EXAMPLES
  57--------
  58
  59Merge one patch into CVS::
  60+
  61------------
  62$ export GIT_DIR=~/project/.git
  63$ cd ~/project_cvs_checkout
  64$ git-cvsexportcommit -v <commit-sha1>
  65$ cvs commit -F .mgs <files> 
  66------------
  67
  68Merge pending patches into CVS automatically -- only if you really know what you are doing ::
  69+
  70------------
  71$ export GIT_DIR=~/project/.git
  72$ cd ~/project_cvs_checkout
  73$ git-cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git-cvsexportcommit -c -p -v
  74------------
  75
  76Author
  77------
  78Written by Martin Langhoff <martin@catalyst.net.nz>
  79
  80Documentation
  81--------------
  82Documentation by Martin Langhoff <martin@catalyst.net.nz>
  83
  84GIT
  85---
  86Part of the gitlink:git[7] suite
  87