threads / discuss / 2107

PATCH: fix cg-mkpatch "-f" option

Subject: PATCH: fix cg-mkpatch "-f" option

## tl;dr

One message between Oct 14, 2005 and Oct 14, 2005.

replies: 0people: 1as markdown or json

Klaus Weidner· Oct 14, 2005, 14:23 UTC · lore
Hello, 

in cogito-0.15.1, the "-f" option to specify a format string for output filenames didn't work, it was getting an empty OPTARG. The following patch fixes it for me.

-Klaus

--- cogito/cg-mkpatch.orig 2005-10-14 09:16:04.000000000 -0500 +++ cogito/cg-mkpatch 2005-10-14 09:16:33.000000000 -0500

@@ -119,7 +119,7 @@
 		mergebase=1
 	elif optparse -d=; then
 		outdir="$OPTARG"
-	elif optparse -f; then
+	elif optparse -f=; then
 		fileformat="$OPTARG"
 	else
 		optfail

← back to recent threads