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

Re: [StGit PATCH] Add import -p option

From: Catalin Marinas <hidden>
Date: 2016-06-15 22:47:23

2009/9/8 Karl Wiberg [off-list ref]:
On 2009-09-08 22:43:39 +0100, Catalin Marinas wrote:
quoted
This patch renames some of the existing import options and adds the
-p (--strip) option which allows stripping the leading slashes of
the diff paths.
Looks good (and the intent is very good). The import test should
probably be augmented with a test case for -pN, though.
Yes. I'll try to add one. As you noticed, not all options are tested.
quoted
+    if strip:
+        cmd += ['-p', strip]
This test should probably be "if strip != None". It doesn't _really_
matter, technically, since -p0 is the default, but still ...
I modified it after posting the patch. The git default is -p1, so we
would miss the -p0 case.

-- 
Catalin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help