git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[StGit PATCH 00/14] Undo series

From
Karl Hasselström <kha@treskal.com>
Date
Jun 12, 2008, 05:34 UTC
Message-ID
<20080612052913.23549.69687.stgit@yoghurt>

Now with API documentation added all over the place! Especially in 2/14 and 3/14.

The only two things missing before I'll ask for this to be included are

  1. Conversion of stg refresh to the new infrastructure, so that it
     can write two separate steps to the stack log (which will allow
     undo et.al. to handle it nicely).
  2. Log writing optimization: Right now, we always write all the
     patches to the log, without trying to reuse the entries for the
     ones that haven't changed since last time.
---
Karl Hasselström (14):
      Make "stg log" show stack log instead of patch log
      Log and undo external modifications
      New command: stg redo
      New command: stg undo
      Move stack reset function to a shared location
      Don't write a log entry if there were no changes
      Add a --hard flag to stg reset
      Log conflicts separately for all commands
      Log conflicts separately
      New command: stg reset
      Add utility function for reordering patches
      Write to a stack log when stack is modified
      Library functions for tree and blob manipulation
      Fix typo
 stgit/commands/branch.py     |   19 +-
 stgit/commands/common.py     |    9 +
 stgit/commands/diff.py       |    2 
 stgit/commands/files.py      |    2 
 stgit/commands/id.py         |    2 
 stgit/commands/log.py        |  169 +++++------------
 stgit/commands/mail.py       |    2 
 stgit/commands/patches.py    |    2 
 stgit/commands/redo.py       |   52 +++++
 stgit/commands/reset.py      |   56 +++++
 stgit/commands/show.py       |    2 
 stgit/commands/status.py     |    3 
 stgit/commands/undo.py       |   49 +++++
 stgit/lib/git.py             |  197 +++++++++++++++++--
 stgit/lib/log.py             |  429 ++++++++++++++++++++++++++++++++++++++++++
 stgit/lib/stack.py           |   16 ++
 stgit/lib/transaction.py     |  121 +++++++++---
 stgit/main.py                |    8 +
 t/t1400-patch-history.sh     |  103 ----------
 t/t3100-reset.sh             |  151 +++++++++++++++
 t/t3101-reset-hard.sh        |   56 +++++
 t/t3102-undo.sh              |   86 ++++++++
 t/t3103-undo-hard.sh         |   56 +++++
 t/t3104-redo.sh              |  122 ++++++++++++
 t/t3105-undo-external-mod.sh |   68 +++++++
 25 files changed, 1491 insertions(+), 291 deletions(-)
 create mode 100644 stgit/commands/redo.py
 create mode 100644 stgit/commands/reset.py
 create mode 100644 stgit/commands/undo.py
 create mode 100644 stgit/lib/log.py
 delete mode 100755 t/t1400-patch-history.sh
 create mode 100755 t/t3100-reset.sh
 create mode 100755 t/t3101-reset-hard.sh
 create mode 100755 t/t3102-undo.sh
 create mode 100755 t/t3103-undo-hard.sh
 create mode 100755 t/t3104-redo.sh
 create mode 100755 t/t3105-undo-external-mod.sh
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Next: Karl Hasselström
Message 1 of 32 in “Undo series”
  1. 00/14 Undo seriesKarl Hasselström, Jun 12, 2008
  2. 01/14 Fix typoKarl Hasselström, Jun 12, 2008
  3. 02/14 Library functions for tree and blob manipulationKarl Hasselström, Jun 12, 2008
  4. 03/14 Write to a stack log when stack is modifiedKarl Hasselström, Jun 12, 2008
  5. Catalin MarinasJun 17, 2008
  6. Karl HasselströmJun 17, 2008
  7. Karl HasselströmJun 17, 2008
  8. Catalin MarinasJun 17, 2008
  9. Karl HasselströmJun 17, 2008
  10. Catalin MarinasJun 18, 2008
  11. Karl HasselströmJun 18, 2008
  12. Catalin MarinasJun 18, 2008
  13. Karl HasselströmJun 18, 2008
  14. Catalin MarinasJun 19, 2008
  15. Karl HasselströmJun 19, 2008
  16. Catalin MarinasJun 20, 2008
  17. Karl HasselströmJun 23, 2008
  18. Catalin MarinasJul 12, 2008
  19. Karl HasselströmJul 14, 2008
  20. Karl HasselströmJul 1, 2008
  21. Catalin MarinasJul 3, 2008
  22. 04/14 Add utility function for reordering patchesKarl Hasselström, Jun 12, 2008
  23. 05/14 New command: stg resetKarl Hasselström, Jun 12, 2008
  24. 06/14 Log conflicts separatelyKarl Hasselström, Jun 12, 2008
  25. 07/14 Log conflicts separately for all commandsKarl Hasselström, Jun 12, 2008
  26. 08/14 Add a --hard flag to stg resetKarl Hasselström, Jun 12, 2008
  27. 09/14 Don't write a log entry if there were no changesKarl Hasselström, Jun 12, 2008
  28. 10/14 Move stack reset function to a shared locationKarl Hasselström, Jun 12, 2008
  29. 11/14 New command: stg undoKarl Hasselström, Jun 12, 2008
  30. 12/14 New command: stg redoKarl Hasselström, Jun 12, 2008
  31. 13/14 Log and undo external modificationsKarl Hasselström, Jun 12, 2008
  32. 14/14 Make "stg log" show stack log instead of patch logKarl Hasselström, Jun 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.