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
--
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
| Linus Torvalds | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Tvrtko A. Ursulin | Western Digital GreenPower drives and Linux |
git: | |
| Shawn O. Pearce | [BULLS**T PATCH] Allow Git to work at Insane Bank Corp |
| Michael Hendricks | removing content from git history |
| Eivind LM | Split a subversion repo into several git repos |
| Nicolas Pitre | Re: [PATCH] gc: call "prune --expire 2.weeks.ago" |
| Joachim Schipper | Re: OpenBSD/alpha Status |
| Cabillot Julien | Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA |
| Marco Peereboom | Re: DELL PERC 5iR slow performance |
| Travers Buda | Re: Important OpenBSD errata |
| Rik Faith | ATI VGA WONDER driver for x386 |
| Mark Tarrabain | Some thoughts on device drivers |
| Karl J. Vesterling | Re: BYTE asks, is UNIX dead? |
| Linus Torvalds | Re: Copyright |
| SMDK2410 LCD Framebuffer driver | 2 hours ago | Linux kernel |
| Resetting the bios password for Toshiba Laptop | 3 hours ago | Hardware |
| Problem booting a barebone kernel in VMWare | 6 hours ago | Linux kernel |
| IP layer send packet | 10 hours ago | Linux kernel |
| PID to ELF image full path | 13 hours ago | Linux kernel |
| types of kernel | 1 day ago | Linux kernel |
| magical mounts | 2 days ago | Linux kernel |
| Problem in scim in Fedora 9 | 2 days ago | Linux general |
| The new Western Digital power saving drives | 2 days ago | Hardware |
| Battery Maximizer Software | 3 days ago | Linux kernel |
