Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: [PATCH v2 00/45] parse_pathspec and :(glob) magic

From: Eric Sunshine <hidden>
Date: 2016-06-15 22:56:29

Possibly related (same subject, not in this thread)

On Fri, Mar 22, 2013 at 11:13 PM, Duy Nguyen [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/setup.c b/setup.c
index e59146b..6cf2bc6 100644
--- a/setup.c
+++ b/setup.c
@@ -5,24 +5,37 @@
 static int inside_git_dir = -1;
 static int inside_work_tree = -1;

-char *prefix_path_gently(const char *prefix, int *p_len, const char *path)
+/*
+ * Normalize "path", prepending the "prefix" for relative paths. If
+ * remaining_prefix is not NULL, return the actual prefix still
+ * remains in the path. For example, prefix = sub1/sub2/ and path is
s/still remains/still remaining/
...or...
s/still remains/which still remains/
...or...
s/still remains/which remains/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help