git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-svn: documented --ignore-paths

From
Vitaly "_Vi" Shukela <public_vi@tut.by>
Date
Jan 25, 2009, 22:21 UTC
Message-ID
<1232922102-6144-2-git-send-email-public_vi@tut.by>
In-Reply-To
<1232922102-6144-1-git-send-email-public_vi@tut.by>

Documented --ignore-paths option of git-svn to inform users about the feature and provide some examples.

Signed-off-by: Vitaly "_Vi" Shukela <public_vi@tut.by>
---
 Documentation/git-svn.txt |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 63d2f5e..2215fcb 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -103,6 +103,19 @@ repository to be able to interoperate with someone else's local Git
 repository, either don't use this option or you should both use it in
 the same local timezone.
 
+--ignore-paths=<regex>;;
+	This allows one to specify Perl regular expression that will
+	cause skipping of all matching paths from checkout from SVN.
+	Examples: 
+
+	--ignore-paths="^doc" - skip "doc*" directory for every fetch.
+
+	--ignore-paths="^[^/]+/(?:branches|tags)" - skip "branches"
+	    and "tags" of first level directories.
+
+	Regular expression is not persistent, you should specify
+	it every time when fetching.
+
 'clone'::
 	Runs 'init' and 'fetch'.  It will automatically create a
 	directory based on the basename of the URL passed to it;
-- 
1.5.6.5
Previous: Vitaly "_Vi" ShukelaNext: Vitaly "_Vi" Shukela
Message 2 of 3 in “git-svn: add --ignore-paths option for fetching”
  1. git-svn: add --ignore-paths option for fetchingVitaly "_Vi" Shukela, Jan 25, 2009
  2. git-svn: documented --ignore-pathsVitaly "_Vi" Shukela, Jan 25, 2009
  3. git-svn: Add test for --ignore-paths parameterVitaly "_Vi" Shukela, Jan 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.