]> git.ipfire.org Git - thirdparty/git.git/blobdiff - line-log.h
log -L: store the path instead of a diff_filespec
[thirdparty/git.git] / line-log.h
index 9acd12361ad79186d1ce0bf2502e50f926cf4499..8bea45fd78f0368fef373be080ea5fa77d428c7f 100644 (file)
@@ -26,10 +26,14 @@ struct diff_ranges {
 };
 
 /* Linked list of interesting files and their associated ranges.  The
- * list must be kept sorted by spec->path */
+ * list must be kept sorted by path.
+ *
+ * For simplicity, even though this is highly redundant, each
+ * line_log_data owns its 'path'.
+ */
 struct line_log_data {
        struct line_log_data *next;
-       struct diff_filespec *spec;
+       char *path;
        char status;
        struct range_set ranges;
        int arg_alloc, arg_nr;