[Frugalware-darcs] vmexam: dg: added " Do you want to add a long comment?" question (it was yes till now)

VMiklos vmiklos at frugalware.org
Wed Jun 13 17:53:52 CEST 2007


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

[dg: added "Do you want to add a long comment?" question (it was yes till now)
VMiklos <vmiklos at frugalware.org>**20070613155206] {
hunk ./python/dg.py 161
+	while True:
+		ret = ask("Do you want to add a long comment? [ynq]")
+		if ret == "y":
+			opts = "-e"
+			break
+		if ret == "n":
+			opts = ""
+			break
+		if ret == "q":
+			sys.exit(0)
+		print "Invalid response, try again!"
hunk ./python/dg.py 179
-	os.system("git commit -m '%s' -e" % msg)
+	os.system("git commit -m '%s' %s" % (msg, opts))
}


More information about the Frugalware-darcs mailing list