chiark / gitweb /
squash: Make commit message editing more convenient
authorKarl Wiberg <kha@treskal.com>
Mon, 24 Aug 2009 08:28:33 +0000 (10:28 +0200)
committerKarl Wiberg <kha@treskal.com>
Mon, 24 Aug 2009 08:28:33 +0000 (10:28 +0200)
commit4c47af784eb3357a403360e871c6e15a6ca70b39
tree43498294c7824864da7d16c51a8e6e34c9f38681
parentd34d6e351e9708f4a5ce519e508abbc418285b5e
squash: Make commit message editing more convenient

Very often, the commit message you want when squashing is the message
of the first patch. So instead of simply concatenating the messages of
all the patches, put a comment delimiter after the first one, and
ignore everything after the delimiter when reading the message back
in. If the user wants to use any part of the commented-out messages,
she can move text around however she wants, including deleting the
comment delimiter.

Signed-off-by: Karl Wiberg <kha@treskal.com>
stgit/commands/squash.py
stgit/utils.py