From: Sven Verdoolaege Date: Mon, 11 Jul 2005 14:57:49 +0000 (+0200) Subject: [PATCH] git-cvsimport-script: add "import only" option X-Git-Tag: v0.99.1~60 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c1c774e7965ba08061c3fc7bc57aebc7eeb6b40f;p=git.git [PATCH] git-cvsimport-script: add "import only" option git-cvsimport-script: add "import only" option which tells the script not to perform a checkout after importing. This ensures that the working directory and cache remain untouched and will not create them if they do not exist. Acked-by: Matthias Urlichs Signed-off-by: Sven Verdoolaege Signed-off-by: Linus Torvalds --- diff --git a/Documentation/git-cvsimport-script.txt b/Documentation/git-cvsimport-script.txt index 4eb0f432..05145e93 100644 --- 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 index 666de6f0..0ed12ff3 100755 --- 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 <