X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=git.c;h=a547dbd9136c70e49340814d1d57e92ec94c4c3d;hb=de84f99c12d1819479116685393afb1ebe99810b;hp=bf68daca200cee00747cec1bbcace985ff0af9d1;hpb=ed50804e54ecd3cb4f2f25fc18221a2a026e5457;p=git.git diff --git a/git.c b/git.c index bf68daca..a547dbd9 100644 --- a/git.c +++ b/git.c @@ -264,20 +264,7 @@ static int cmd_log(int argc, char **argv, char **envp) argc = setup_revisions(argc, argv, &rev, "HEAD"); while (1 < argc) { char *arg = argv[1]; - /* accept -, like traditilnal "head" */ - if ((*arg == '-') && isdigit(arg[1])) { - rev.max_count = atoi(arg + 1); - } - else if (!strcmp(arg, "-n")) { - if (argc < 2) - die("-n requires an argument"); - rev.max_count = atoi(argv[2]); - argc--; argv++; - } - else if (!strncmp(arg,"-n",2)) { - rev.max_count = atoi(arg + 2); - } - else if (!strncmp(arg, "--pretty", 8)) { + if (!strncmp(arg, "--pretty", 8)) { commit_format = get_commit_format(arg + 8); if (commit_format == CMIT_FMT_ONELINE) commit_prefix = "";