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

Re: [PATCH] Handle branch names with slashes

From: Catalin Marinas <hidden>
Date: 2016-06-15 22:42:26

Possibly related (same subject, not in this thread)

On 18/05/06, Karl Hasselström [off-list ref] wrote:
Teach stgit to handle branch names with slashes in them; that is,
branches living in a subdirectory of .git/refs/heads.
[...]
Catalin, I hope you're paying attention when trying to pick the
correct three patches out of the salvos I've sent you. :-)
Hopefully, I applied them correctly. I'll update the public repository
tonight and you can check whether they are OK or not.
quoted hunk ↗ jump to hunk
--- a/stgit/commands/common.py
+++ b/stgit/commands/common.py
[...]
+    if len(dirs) != 0:
+        # We have branch names with / in them.
+        branch_chars = r'[^@]'
+        patch_id_mark = r'//'
+    else:
+        # No / in branch names.
+        branch_chars = r'[^@%/]'
I removed % from the above regexp.

Thanks for the patches. Great work.

-- 
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