| 1879 | } |
| 1880 | |
| 1881 | void grep_source_init_file(struct grep_source *gs, const char *name, |
| 1882 | const char *path) |
| 1883 | { |
| 1884 | gs->type = GREP_SOURCE_FILE; |
| 1885 | gs->name = xstrdup_or_null(name); |
| 1886 | gs->path = xstrdup_or_null(path); |
| 1887 | gs->buf = NULL; |
| 1888 | gs->size = 0; |
| 1889 | gs->driver = NULL; |
| 1890 | gs->identifier = xstrdup(path); |
| 1891 | } |
| 1892 | |
| 1893 | void grep_source_init_oid(struct grep_source *gs, const char *name, |
| 1894 | const char *path, const struct object_id *oid, |
no test coverage detected