From: Sven Verdoolaege Date: Mon, 11 Jul 2005 14:57:49 GMT Subject: [PATCH] git-cvsimport-script: add "import only" option Message-ID: <20050711145749.GF9370MdfPADPa@garage.linux.student.kuleuven.ac.be> git-cvsimport-script: add "import only" option. Acked-by: Matthias Urlichs Signed-off-by: Sven Verdoolaege --- commit 1be6fbebb010083a083d8e2ee69fced7b6ae1261 tree a69017b2d10fd0a2655070d177f7cf59ab21882f parent a3eb250f996bf5e12376ec88622c4ccaabf20ea8 author Sven Verdoolaege Mon, 11 Jul 2005 16:17:25 +0200 committer Sven Verdoolaege Mon, 11 Jul 2005 16:17:25 +0200 Documentation/git-cvsimport-script.txt | 7 ++++++- git-cvsimport-script | 18 +++++++++++------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Documentation/git-cvsimport-script.txt b/Documentation/git-cvsimport-script.txt --- a/Documentation/git-cvsimport-script.txt +++ b/Documentation/git-cvsimport-script.txt @@ -11,7 +11,7 @@ SYNOPSIS -------- 'git-cvsimport-script' [ -o ] [ -h ] [ -v ] [ -d ] [ -p ] - [ -C ] [ ] + [ -C ] [ -i ] [ ] DESCRIPTION @@ -29,6 +29,11 @@ OPTIONS currently, only the :local:, :ext: and :pserver: access methods are supported. +-i:: + Import-only: don't perform a checkout after importing. This option + ensures the working directory and cache remain untouched and will + not create them if they do not exist. + -o :: The 'HEAD' branch from CVS is imported to the 'origin' branch within the git repository, as 'HEAD' already has a special meaning for git. diff --git a/git-cvsimport-script b/git-cvsimport-script --- a/git-cvsimport-script +++ b/git-cvsimport-script @@ -28,19 +28,19 @@ use POSIX qw(strftime dup2); $SIG{'PIPE'}="IGNORE"; $ENV{'TZ'}="UTC"; -our($opt_h,$opt_o,$opt_v,$opt_d,$opt_p,$opt_C,$opt_z); +our($opt_h,$opt_o,$opt_v,$opt_d,$opt_p,$opt_C,$opt_z,$opt_i); sub usage() { print STDERR <