[projects/git-slug: 40/170] New 'fetch' command
glen
glen at pld-linux.org
Mon Sep 21 21:42:10 CEST 2015
commit 4428e1c76f26f0752b11f55aa52442c885efc955
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Thu Sep 22 16:13:30 2011 +0100
New 'fetch' command
It is equivalent of git fetch origin on all local repos. The fetch is
restricting to repos in which any branch has changed its ref.
slug.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/slug.py b/slug.py
index 8cda7b4..1624b20 100755
--- a/slug.py
+++ b/slug.py
@@ -185,6 +185,10 @@ clone = subparsers.add_parser('clone', help='clone repositorieas', parents=[comm
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
clone.set_defaults(func=clone_packages, branch='[*]', prune=False, depth=0, newpkgs=True, omitexisting=True)
+fetch = subparsers.add_parser('fetch', help='fetch repositories', parents=[common_fetchoptions],
+ formatter_class=argparse.ArgumentDefaultsHelpFormatter)
+fetch.set_defaults(func=clone_packages, branch='[*]', prune=False, depth=0, newpkgs=False, omitexisting=False)
+
parser.set_defaults(**readconfig(os.path.expanduser('~/.gitconfig')))
options = parser.parse_args()
options.func(options)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5
More information about the pld-cvs-commit
mailing list