Adam Spiers g...@adamspiers.org writes:
diff --git a/pathspec.h b/pathspec.h
new file mode 100644
index 000..8bb670b
--- /dev/null
+++ b/pathspec.h
@@ -0,0 +1,5 @@
+extern char *find_used_pathspec(const char **pathspec);
+extern void fill_pathspec_matches(const char **pathspec, char
On Fri, Dec 28, 2012 at 8:32 PM, Junio C Hamano gits...@pobox.com wrote:
Adam Spiers g...@adamspiers.org writes:
diff --git a/pathspec.h b/pathspec.h
new file mode 100644
index 000..8bb670b
--- /dev/null
+++ b/pathspec.h
@@ -0,0 +1,5 @@
+extern char *find_used_pathspec(const char
Adam Spiers g...@adamspiers.org writes:
diff --git a/pathspec.c b/pathspec.c
new file mode 100644
index 000..8aea0d2
--- /dev/null
+++ b/pathspec.c
@@ -0,0 +1,99 @@
+#include cache.h
+#include dir.h
+#include pathspec.h
+
+void fill_pathspec_matches(const char **pathspec, char
On Fri, Dec 28, 2012 at 8:48 PM, Junio C Hamano gits...@pobox.com wrote:
Adam Spiers g...@adamspiers.org writes:
diff --git a/pathspec.c b/pathspec.c
new file mode 100644
index 000..8aea0d2
--- /dev/null
+++ b/pathspec.c
@@ -0,0 +1,99 @@
+#include cache.h
+#include dir.h
+#include
On Fri, Dec 28, 2012 at 8:45 PM, Adam Spiers g...@adamspiers.org wrote:
On Fri, Dec 28, 2012 at 8:32 PM, Junio C Hamano gits...@pobox.com wrote:
Adam Spiers g...@adamspiers.org writes:
diff --git a/pathspec.h b/pathspec.h
new file mode 100644
index 000..8bb670b
--- /dev/null
+++
Extract the following functions from builtin/add.c to pathspec.c, in
preparation for reuse by a new git check-ignore command:
- fill_pathspec_matches()
- find_used_pathspec()
- treat_gitlink()
- treat_gitlinks()
- validate_pathspec()
The functions being extracted are not changed in any
6 matches
Mail list logo