Generate shorter patch names
authorKarl Hasselström <kha@treskal.com>
Tue, 7 Nov 2006 19:03:47 +0000 (19:03 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Tue, 7 Nov 2006 19:03:47 +0000 (19:03 +0000)
commitf9a2b5dae96b05071105a9b84e98bcc8942960ed
treec39f33e352eaad9f3cbb2d8c996e6b085991f3e9
parent2153b8f56dfa10936ca934a68a364dacdf161117
Generate shorter patch names

Not all commits are blessed with a really short first-line summary in
their commit messages. This means that we shouldn't blindly take the
entire first line of the comment, since that sometimes results in
truly spectacular patch names.

I chose 30 characters as a reasonable value, considering that we don't
yet have any tab-completion on patch names. There's probably not much
point in making it configurable.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/common.py