Revert "Merge branch 'jg/status-config'"
[gitweb.git] / line-range.h
index 830f25b501df5aa5960d1c654aa767335f7f506b..ae3d0123b447c1c619695c2d0aaf619d1daaa991 100644 (file)
@@ -19,6 +19,18 @@ typedef const char *(*nth_line_fn_t)(void *data, long lno);
 extern int parse_range_arg(const char *arg,
                           nth_line_fn_t nth_line_cb,
                           void *cb_data, long lines,
-                          long *begin, long *end);
+                          long *begin, long *end,
+                          const char *path);
+
+/*
+ * Scan past a range argument that could be parsed by
+ * 'parse_range_arg', to help the caller determine the start of the
+ * filename in '-L n,m:file' syntax.
+ *
+ * Returns a pointer to the first character after the 'n,m' part, or
+ * NULL in case the argument is obviously malformed.
+ */
+
+extern const char *skip_range_arg(const char *arg);
 
 #endif /* LINE_RANGE_H */