[Frugalware-darcs] vmexam: dg: new alias: get -> clone

VMiklos vmiklos at frugalware.org
Thu Jun 14 02:55:08 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070614002016-e2957-b3307b61c717d6df6ba3b254ff6ce40f2a4b2a44.gz;

[dg: new alias: get -> clone
VMiklos <vmiklos at frugalware.org>**20070614002016] {
hunk ./python/dg.py 413
+def get(argv):
+	def usage(ret):
+		print """Usage: darcs-git get [OPTION]... <REPOSITORY> [<DIRECTORY>]
+Create a local copy of another repository.
+Use "darcs-git help clone" for more information.
+
+Options:
+  -h  --help                         shows brief description of command and its arguments"""
+		sys.exit(ret)
+	if argv[0] in ("-h", "--help"):
+		usage(0)
+	else:
+		return os.system("git clone %s" % " ".join(argv))
+
hunk ./python/dg.py 439
+		elif sys.argv[1] == "get":
+			get(argv[1:])
}


More information about the Frugalware-darcs mailing list