Handle branch names with slashes
authorKarl Hasselström <kha@treskal.com>
Thu, 18 May 2006 20:36:41 +0000 (21:36 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 18 May 2006 20:36:41 +0000 (21:36 +0100)
commit6e83f4d7c39b981146f57aad8049c5622799dd00
treea99b8141f661028c551f7730e147b16bed6a8120
parent7217efbf26d7ec757ac72fdadf247a932e56244a
Handle branch names with slashes

Teach stgit to handle branch names with slashes in them; that is,
branches living in a subdirectory of .git/refs/heads.

I had to change the patch@branch/top command-line syntax to
patch@branch//top, in order to get sane parsing. The /top variant is
still available for repositories that have no slashy branches; it is
disabled as soon as there exists at least one subdirectory of
refs/heads. Preferably, this compatibility hack can be killed some
time in the future.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/branch.py
stgit/commands/common.py
stgit/commands/diff.py
stgit/commands/files.py
stgit/commands/id.py
stgit/commands/mail.py
stgit/git.py
stgit/stack.py
stgit/utils.py