From: "Karl Hasselström" <kha@treskal.com>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: git@vger.kernel.org
Subject: [StGit PATCH 0/2] stg undo
Date: Fri, 09 May 2008 02:44:18 +0200 [thread overview]
Message-ID: <20080509003824.20312.17819.stgit@yoghurt> (raw)
Here's a fully general undo command for StGit. It uses the same
machinery as the "stg reset" I posted previously, but is more
convenient to use when all you want to do is undo the last operation.
The next step would be to remove all traces of "push --undo" et al.,
but I'll save that for another day.
For trying this out, pull from
git://repo.or.cz/stgit/kha.git experimental
since a few of the patches below these two have been updated as well.
(For example, the log branch in <branchname>.stgit^ is now much more
human-readable.)
---
Karl Hasselström (2):
New command: stg undo
Move stack reset function to a shared location
stgit/commands/reset.py | 70 ++++---------------------------------
stgit/commands/undo.py | 49 ++++++++++++++++++++++++++
stgit/lib/log.py | 76 +++++++++++++++++++++++++++++++++++++++++
stgit/lib/transaction.py | 1 +
stgit/main.py | 2 +
t/t3102-undo.sh | 86 ++++++++++++++++++++++++++++++++++++++++++++++
t/t3103-undo-hard.sh | 56 ++++++++++++++++++++++++++++++
7 files changed, 277 insertions(+), 63 deletions(-)
create mode 100644 stgit/commands/undo.py
create mode 100755 t/t3102-undo.sh
create mode 100755 t/t3103-undo-hard.sh
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
next reply other threads:[~2008-05-09 0:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-09 0:44 Karl Hasselström [this message]
2008-05-09 0:44 ` [StGit PATCH 1/2] Move stack reset function to a shared location Karl Hasselström
2008-05-09 0:44 ` [StGit PATCH 2/2] New command: stg undo Karl Hasselström
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080509003824.20312.17819.stgit@yoghurt \
--to=kha@treskal.com \
--cc=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.