Re: [PATCH] Handle branch names with slashes

From: Catalin Marinas <catalin.marinas@gmail.com>
Date: 2006-05-18 22:11:52
On 18/05/06, Karl Hasselström <kha@treskal.com> 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.

> --- 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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu May 18 22:12:34 2006

This archive was generated by hypermail 2.1.8 : 2006-05-18 22:12:53 EST