Add option to cvs update before export
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
18bece4367
commit
e5d80641d7
@ -15,9 +15,9 @@ unless ($ENV{GIT_DIR} && -r $ENV{GIT_DIR}){
|
||||
die "GIT_DIR is not defined or is unreadable";
|
||||
}
|
||||
|
||||
our ($opt_h, $opt_P, $opt_p, $opt_v, $opt_c, $opt_f, $opt_a, $opt_m, $opt_d);
|
||||
our ($opt_h, $opt_P, $opt_p, $opt_v, $opt_c, $opt_f, $opt_a, $opt_m, $opt_d, $opt_u);
|
||||
|
||||
getopts('hPpvcfam:d:');
|
||||
getopts('uhPpvcfam:d:');
|
||||
|
||||
$opt_h && usage();
|
||||
|
||||
@ -178,6 +178,10 @@ foreach my $f (@files) {
|
||||
|
||||
my %cvsstat;
|
||||
if (@canstatusfiles) {
|
||||
if ($opt_u) {
|
||||
my @updated = safe_pipe_capture(@cvs, 'update', @canstatusfiles);
|
||||
print @updated;
|
||||
}
|
||||
my @cvsoutput;
|
||||
@cvsoutput= safe_pipe_capture(@cvs, 'status', @canstatusfiles);
|
||||
my $matchcount = 0;
|
||||
|
Reference in New Issue
Block a user