]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-rev-list.c
Make some strbuf_*() struct strbuf arguments const.
[git.git] / builtin-rev-list.c
index 83a7b1349e06dbf1a355888272d9b13a7d4c22c4..54b6672969bdcd6f5bf48922f180883b35a5041e 100644 (file)
@@ -565,23 +565,6 @@ static struct commit_list *find_bisection(struct commit_list *list,
        return best;
 }
 
-static void read_revisions_from_stdin(struct rev_info *revs)
-{
-       char line[1000];
-
-       while (fgets(line, sizeof(line), stdin) != NULL) {
-               int len = strlen(line);
-               if (len && line[len - 1] == '\n')
-                       line[--len] = 0;
-               if (!len)
-                       break;
-               if (line[0] == '-')
-                       die("options not supported in --stdin mode");
-               if (handle_revision_arg(line, revs, 0, 1))
-                       die("bad revision '%s'", line);
-       }
-}
-
 int cmd_rev_list(int argc, const char **argv, const char *prefix)
 {
        struct commit_list *list;