{"thread":{"id":"3186","subject":"[PATCH] cvsexportcommit: add some examples to the documentation","startedAt":"2006-01-30T06:34:15Z","lastAt":"2006-01-30T07:36:40Z","messageCount":2,"participants":["Martin Langhoff","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"15246","messageId":"11386028552572-git-send-email-martin@catalyst.net.nz","threadId":"3186","inReplyTo":null,"subject":"[PATCH] cvsexportcommit: add some examples to the documentation","fromName":"Martin Langhoff","fromEmail":"martin@catalyst.net.nz","sentAt":"2006-01-30T06:34:15Z","receivedAt":"2006-01-30T06:34:15Z","isPatch":true,"sender":{"key":"martin@laptop.org","avatar":null},"body":"Updated with Randall Schwartz's suggestion.\n\nSigned-off-by: Martin Langhoff <martin@catalyst.net.nz>\n\n\n---\n\nApologies! One of these days I'll get it right on the first try ;-)\n\n Documentation/git-cvsexportcommit.txt |   21 +++++++++++++++++++++\n 1 files changed, 21 insertions(+), 0 deletions(-)\n\n69c980351a6d74d033a8d70fb37970c71ff8e855\ndiff --git a/Documentation/git-cvsexportcommit.txt b/Documentation/git-cvsexportcommit.txt\nindex 13cbf3b..e2540fb 100644\n--- a/Documentation/git-cvsexportcommit.txt\n+++ b/Documentation/git-cvsexportcommit.txt\n@@ -17,6 +17,7 @@ Exports a commit from GIT to a CVS check\n to merge patches from a git repository into a CVS repository. \n \n Execute it from the root of the CVS working copy. GIT_DIR must be defined. \n+See examples below.\n \n It does its best to do the safe thing, it will check that the files are \n unchanged and up to date in the CVS checkout, and it will not autocommit \n@@ -41,6 +42,26 @@ OPTIONS\n -v::\n \tVerbose.\n \n+EXAMPLES\n+--------\n+\n+Merge one patch into CVS::\n++\n+------------\n+$ export GIT_DIR=~/project/.git\n+$ cd ~/project_cvs_checkout\n+$ git-cvsexportcommit -v <commit-sha1>\n+$ cvs commit -F .mgs <files> \n+------------\n+\n+Merge pending patches into CVS automatically -- only if you really know what you are doing ::\n++\n+------------\n+$ export GIT_DIR=~/project/.git\n+$ cd ~/project_cvs_checkout\n+$ git-cherry cvshead myhead | sed -n 's/^+ //p' | xargs -l1 git-cvsexportcommit -c -p -v\n+------------\n+\n Author\n ------\n Written by Martin Langhoff <martin@catalyst.net.nz>\n-- \n1.1.6.g170f-dirty\n"},{"id":"15248","messageId":"7vd5iacgl3.fsf@assigned-by-dhcp.cox.net","threadId":"3186","inReplyTo":"11386028552572-git-send-email-martin@catalyst.net.nz","subject":"Re: [PATCH] cvsexportcommit: add some examples to the documentation","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-01-30T07:36:40Z","receivedAt":"2006-01-30T07:36:40Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks both.\n"}]}