[projects/git-slug: 22/170] Change the command name from fetch to update

glen glen at pld-linux.org
Mon Sep 21 21:40:39 CEST 2015


commit ed4755055273736b30ced62f6a435d9a35fc08f5
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Fri Sep 16 22:19:57 2011 +0100

    Change the command name from fetch to update
    
    It is to avoid confusion with git fetch as the update command can also
    clone new repos and remove the not existing ones.

 slug.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/slug.py b/slug.py
index ab1f8a1..80c8303 100755
--- a/slug.py
+++ b/slug.py
@@ -135,7 +135,7 @@ parser = argparse.ArgumentParser(description='PLD tool for interaction with git
         formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 
 subparsers = parser.add_subparsers(help='sub-command help')
-clone = subparsers.add_parser('fetch', help='fetch repositories', parents=[common_options],
+clone = subparsers.add_parser('update', help='fetch repositories', parents=[common_options],
         formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 clone.add_argument('-b', '--branch', help='branch to fetch', default = 'master')
 clone.add_argument('-P', '--prune', help='prune git repositories that do no exist upstream',
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5



More information about the pld-cvs-commit mailing list