On Sun, Nov 04, 2007 at 07:02:21PM +0000, Shawn Bohrer wrote: > + for (i = 1; i < argc; i++) { > + const char *arg = argv[i]; > + > + if (arg[0] != '-') > + break; > + if (!strcmp(arg, "--")) { > + i++; > + break; > + } > + if (!strcmp(arg, "-n")) { > + show_only = 1; > + disabled = 0; > + continue; > + } > + if (!strcmp(arg, "-f")) { > + disabled = 0; > + continue; > + } > + if (!strcmp(arg, "-d")) { > + remove_directories = 1; > + continue; > + } > + if (!strcmp(arg, "-q")) { > + quiet = 1; > + continue; > + } > + if (!strcmp(arg, "-x")) { > + ignored = 1; > + continue; > + } > + if (!strcmp(arg, "-X")) { > + ignored_only = 1; > + dir.show_ignored =1; > + dir.exclude_per_dir = ".gitignore"; > + continue; > + } > + usage(builtin_clean_usage); Please, parse-options.c is now in next, please use it. -- ·O· Pierre Habouzit ··O madcoder@xxxxxxxxxx OOO http://www.madism.org
Attachment:
pgpmofeqa3Zo4.pgp
Description: PGP signature