Ticket #24180: 0001-Bug-24180-make-rbm-fetch-accept-options.patch

File 0001-Bug-24180-make-rbm-fetch-accept-options.patch, 1.3 KB (added by boklm, 2 years ago)
  • doc/rbm-fetch.asc

    From fbf35c5c4830823757eb4bc8aadf54d165086dc7 Mon Sep 17 00:00:00 2001
    From: Nicolas Vigier <boklm@torproject.org>
    Date: Wed, 8 Nov 2017 14:32:04 +0100
    Subject: [PATCH] Bug 24180: make 'rbm fetch' accept options
    
    ---
     doc/rbm-fetch.asc | 7 ++++++-
     rbm               | 3 ++-
     2 files changed, 8 insertions(+), 2 deletions(-)
    
    diff --git a/doc/rbm-fetch.asc b/doc/rbm-fetch.asc
    index 17a41e6..f0da55e 100644
    a b rbm-fetch - Fetch commits from remote git or mercurial repository 
    99SYNOPSIS
    1010--------
    1111[verse]
    12 'rbm fetch' [project]
     12'rbm fetch' [options] [project]
    1313
    1414DESCRIPTION
    1515-----------
    fetched, so there is no need to use this command. 
    2323
    2424Alternatively, the '--fetch' option can be used on other commands.
    2525
     26COMMAND LINE OPTIONS
     27--------------------
     28
     29See link:rbm_cli.html[rbm_cli(7)] for options.
     30
    2631SEE ALSO
    2732--------
    2833link:rbm.html[rbm(1)]
  • rbm

    diff --git a/rbm b/rbm
    index 2c4ad0d..5d6417b 100755
    a b sub show_conf { 
    131131sub fetch {
    132132    shift;
    133133    $RBM::config->{run}{fetch} = 1;
    134     my @l = @_ ? @_ : (RBM::projectslist());
     134    my $args = set_options(@_);
     135    my @l = @$args ? @$args : (RBM::projectslist());
    135136    foreach my $project (@l) {
    136137        RBM::valid_project($project);
    137138        if (RBM::project_config($project, 'git_url')) {