Files
lazygitclj/test/e2e/output/undo-redo.ascii
Adam Jeniski f0c65dedf5 Fix e2e tests and clean up debug artifacts
- Remove nested test/e2e/test/ directory (bad debug data)
- Fix run-all.sh to run VHS from repo root, preventing nested output
- Fix cursor-navigation.tape to use setup script instead of inline shell
- Add setup-cursor-test.sh for cursor navigation tests
- Regenerate all test outputs without FileNotFoundException errors
- Add debug tape/output files to .gitignore
- Remove debug.tape from test suite (for local debugging only)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 12:20:26 -05:00

1177 lines
93 KiB
Plaintext

>
────────────────────────────────────────────────────────────────────────────────
>
────────────────────────────────────────────────────────────────────────────────
>
────────────────────────────────────────────────────────────────────────────────
>
────────────────────────────────────────────────────────────────────────────────
>
────────────────────────────────────────────────────────────────────────────────
>
────────────────────────────────────────────────────────────────────────────────
> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-undo && cd /tmp/lazygitclj-e2e-undo && bb -
-config /home/ajet/repos/lazygitclj/bb.edn start
────────────────────────────────────────────────────────────────────────────────
> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-undo && cd /tmp/lazygitclj-e2e-undo && bb -
-config /home/ajet/repos/lazygitclj/bb.edn start
Initialized empty Git repository in /tmp/lazygitclj-e2e-undo/.git/
[main (root-commit) aa6ad5d] Initial commit
3 files changed, 3 insertions(+)
create mode 100644 README.md
create mode 100644 file1.txt
create mode 100644 file2.txt
Switched to a new branch 'feature-branch'
[feature-branch dcccffc] Add feature
1 file changed, 1 insertion(+)
create mode 100644 feature.txt
Switched to branch 'main'
Test repo created at /tmp/lazygitclj-e2e-undo
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → aa6ad5d │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │
╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ ?? new-file.txt ║ │ @@ -1 +1,2 @@ │
║ ║ │ line1 │
║ ║ │ +modified │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → aa6ad5d │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │
╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ A new-file.txt ║ │ @@ -1 +1,2 @@ │
║ ║ │ line1 │
║ ║ │ +modified │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → aa6ad5d │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │
╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ A new-file.txt ║ │ @@ -1 +1,2 @@ │
║ ║ │ line1 │
║ ║ │ +modified │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → aa6ad5d │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │
╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ A new-file.txt ║ │ @@ -1 +1,2 @@ │
║ ║ │ line1 │
║ ║ │ +modified │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ ╭─ Commit Message ───────────────────────────────╮ │
└─────────────────────│ █ │ │
┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → aa6ad5d │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │
╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ A new-file.txt ║ │ @@ -1 +1,2 @@ │
║ ║ │ line1 │
║ ║ │ +modified │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ ╭─ Commit Message ───────────────────────────────╮ │
└─────────────────────│ █ │ │
┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → aa6ad5d │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │
╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ A new-file.txt ║ │ @@ -1 +1,2 @@ │
║ ║ │ line1 │
║ ║ │ +modified │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ ╭─ Commit Message ───────────────────────────────╮ │
└─────────────────────│ █ │ │
┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → aa6ad5d │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │
╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ A new-file.txt ║ │ @@ -1 +1,2 @@ │
║ ║ │ line1 │
║ ║ │ +modified │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ ╭─ Commit Message ───────────────────────────────╮ │
└─────────────────────│ First commit message█ │ │
┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
Committed!
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ Select an item to view diff │
└────────────────────────────┘ │ │
╔═ 2 Files (0) ══════════════╗ │ │
║ No changes ║ │ │
║ ║ │ │
║ ║ │ │
║ ║ │ │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
│ │ │ │
└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
Committed!
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ Select an item to view diff │
└────────────────────────────┘ │ │
╔═ 2 Files (0) ══════════════╗ │ │
║ No changes ║ │ │
║ ║ │ │
║ ║ │ │
║ ║ │ │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
│ │ │ │
└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-undo && cd /tmp/lazygitclj-e2e-undo && bb -
-config /home/ajet/repos/lazygitclj/bb.edn start
Initialized empty Git repository in /tmp/lazygitclj-e2e-undo/.git/
[main (root-commit) aa6ad5d] Initial commit
3 files changed, 3 insertions(+)
create mode 100644 README.md
create mode 100644 file1.txt
create mode 100644 file2.txt
Switched to a new branch 'feature-branch'
[feature-branch dcccffc] Add feature
1 file changed, 1 insertion(+)
create mode 100644 feature.txt
Switched to branch 'main'
Test repo created at /tmp/lazygitclj-e2e-undo
Starting lazygitclj...
Goodbye!
>
────────────────────────────────────────────────────────────────────────────────
> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-undo && cd /tmp/lazygitclj-e2e-undo && bb -
-config /home/ajet/repos/lazygitclj/bb.edn start
Initialized empty Git repository in /tmp/lazygitclj-e2e-undo/.git/
[main (root-commit) aa6ad5d] Initial commit
3 files changed, 3 insertions(+)
create mode 100644 README.md
create mode 100644 file1.txt
create mode 100644 file2.txt
Switched to a new branch 'feature-branch'
[feature-branch dcccffc] Add feature
1 file changed, 1 insertion(+)
create mode 100644 feature.txt
Switched to branch 'main'
Test repo created at /tmp/lazygitclj-e2e-undo
Starting lazygitclj...
Goodbye!
>
────────────────────────────────────────────────────────────────────────────────
> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-undo && cd /tmp/lazygitclj-e2e-undo && bb -
-config /home/ajet/repos/lazygitclj/bb.edn start
Initialized empty Git repository in /tmp/lazygitclj-e2e-undo/.git/
[main (root-commit) aa6ad5d] Initial commit
3 files changed, 3 insertions(+)
create mode 100644 README.md
create mode 100644 file1.txt
create mode 100644 file2.txt
Switched to a new branch 'feature-branch'
[feature-branch dcccffc] Add feature
1 file changed, 1 insertion(+)
create mode 100644 feature.txt
Switched to branch 'main'
Test repo created at /tmp/lazygitclj-e2e-undo
Starting lazygitclj...
Goodbye!
> echo 'more changes' >> file1.txt && bb --config /home/ajet/repos/lazygitclj/bb.edn start
────────────────────────────────────────────────────────────────────────────────
> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-undo && cd /tmp/lazygitclj-e2e-undo && bb -
-config /home/ajet/repos/lazygitclj/bb.edn start
Initialized empty Git repository in /tmp/lazygitclj-e2e-undo/.git/
[main (root-commit) aa6ad5d] Initial commit
3 files changed, 3 insertions(+)
create mode 100644 README.md
create mode 100644 file1.txt
create mode 100644 file2.txt
Switched to a new branch 'feature-branch'
[feature-branch dcccffc] Add feature
1 file changed, 1 insertion(+)
create mode 100644 feature.txt
Switched to branch 'main'
Test repo created at /tmp/lazygitclj-e2e-undo
Starting lazygitclj...
Goodbye!
> echo 'more changes' >> file1.txt && bb --config /home/ajet/repos/lazygitclj/bb.edn start
Starting lazygitclj...
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index 2a08f83..b675866 100644 │
╔═ 2 Files (1) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ ║ │ @@ -1,2 +1,3 @@ │
║ ║ │ line1 │
║ ║ │ modified │
╚════════════════════════════╝ │ +more changes │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index 2a08f83..b675866 100644 │
╔═ 2 Files (1) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ ║ │ @@ -1,2 +1,3 @@ │
║ ║ │ line1 │
║ ║ │ modified │
╚════════════════════════════╝ │ +more changes │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index 2a08f83..b675866 100644 │
╔═ 2 Files (1) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ ║ │ @@ -1,2 +1,3 @@ │
║ ║ │ line1 │
║ ║ │ modified │
╚════════════════════════════╝ │ +more changes │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index 2a08f83..b675866 100644 │
╔═ 2 Files (1) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ ║ │ @@ -1,2 +1,3 @@ │
║ ║ │ line1 │
║ ║ │ modified │
╚════════════════════════════╝ │ +more changes │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ ╭─ Commit Message ───────────────────────────────╮ │
└─────────────────────│ █ │ │
┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index 2a08f83..b675866 100644 │
╔═ 2 Files (1) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ ║ │ @@ -1,2 +1,3 @@ │
║ ║ │ line1 │
║ ║ │ modified │
╚════════════════════════════╝ │ +more changes │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ ╭─ Commit Message ───────────────────────────────╮ │
└─────────────────────│ █ │ │
┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ diff --git a/file1.txt b/file1.txt │
└────────────────────────────┘ │ index 2a08f83..b675866 100644 │
╔═ 2 Files (1) ══════════════╗ │ --- a/file1.txt │
║ M file1.txt ║ │ +++ b/file1.txt │
║ ║ │ @@ -1,2 +1,3 @@ │
║ ║ │ line1 │
║ ║ │ modified │
╚════════════════════════════╝ │ +more changes │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ ╭─ Commit Message ───────────────────────────────╮ │
└─────────────────────│ Second commit█ │ │
┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ │ │
│ │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
└────────────────────────────┘ │ │
└──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
Committed!
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → 113be48 │ │ Select an item to view diff │
└────────────────────────────┘ │ │
╔═ 2 Files (0) ══════════════╗ │ │
║ No changes ║ │ │
║ ║ │ │
║ ║ │ │
║ ║ │ │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ 113be48 Second commit │ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
│ │ │ │
└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
Committed!
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → 113be48 │ │ Select an item to view diff │
└────────────────────────────┘ │ │
╔═ 2 Files (0) ══════════════╗ │ │
║ No changes ║ │ │
║ ║ │ │
║ ║ │ │
║ ║ │ │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ 113be48 Second commit │ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
│ │ │ │
└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
Undo: reset to HEAD@{1}
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ Select an item to view diff │
└────────────────────────────┘ │ │
╔═ 2 Files (0) ══════════════╗ │ │
║ No changes ║ │ │
║ ║ │ │
║ ║ │ │
║ ║ │ │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
│ │ │ │
└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
Undo: reset to HEAD@{1}
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ Select an item to view diff │
└────────────────────────────┘ │ │
╔═ 2 Files (0) ══════════════╗ │ │
║ No changes ║ │ │
║ ║ │ │
║ ║ │ │
║ ║ │ │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
│ │ │ │
└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
Redo: reset to HEAD@{0}
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ Select an item to view diff │
└────────────────────────────┘ │ │
╔═ 2 Files (0) ══════════════╗ │ │
║ No changes ║ │ │
║ ║ │ │
║ ║ │ │
║ ║ │ │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
│ │ │ │
└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
Redo: reset to HEAD@{0}
┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐
│ main → b687e06 │ │ Select an item to view diff │
└────────────────────────────┘ │ │
╔═ 2 Files (0) ══════════════╗ │ │
║ No changes ║ │ │
║ ║ │ │
║ ║ │ │
║ ║ │ │
╚════════════════════════════╝ │ │
┌─ 3 Branches [L] R T ───────┐ │ │
│ feature-branch │ │ │
│ * main │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 4 Commits [C] R ──────────┐ │ │
│ b687e06 First commit m... │ │ │
│ aa6ad5d Initial commit │ │ │
│ │ │ │
│ │ │ │
└────────────────────────────┘ │ │
┌─ 5 Stash (0) ──────────────┐ │ │
│ No stashes │ └──────────────────────────────────────────────────────────────┘
│ │ ┌─ Command Log ────────────────────────────────────────────────┐
│ │ │ │
│ │ │ │
└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘
q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push
────────────────────────────────────────────────────────────────────────────────
> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-undo && cd /tmp/lazygitclj-e2e-undo && bb -
-config /home/ajet/repos/lazygitclj/bb.edn start
Initialized empty Git repository in /tmp/lazygitclj-e2e-undo/.git/
[main (root-commit) aa6ad5d] Initial commit
3 files changed, 3 insertions(+)
create mode 100644 README.md
create mode 100644 file1.txt
create mode 100644 file2.txt
Switched to a new branch 'feature-branch'
[feature-branch dcccffc] Add feature
1 file changed, 1 insertion(+)
create mode 100644 feature.txt
Switched to branch 'main'
Test repo created at /tmp/lazygitclj-e2e-undo
Starting lazygitclj...
Goodbye!
> echo 'more changes' >> file1.txt && bb --config /home/ajet/repos/lazygitclj/bb.edn start
Starting lazygitclj...
Goodbye!
>
────────────────────────────────────────────────────────────────────────────────
> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-undo && cd /tmp/lazygitclj-e2e-undo && bb -
-config /home/ajet/repos/lazygitclj/bb.edn start
Initialized empty Git repository in /tmp/lazygitclj-e2e-undo/.git/
[main (root-commit) aa6ad5d] Initial commit
3 files changed, 3 insertions(+)
create mode 100644 README.md
create mode 100644 file1.txt
create mode 100644 file2.txt
Switched to a new branch 'feature-branch'
[feature-branch dcccffc] Add feature
1 file changed, 1 insertion(+)
create mode 100644 feature.txt
Switched to branch 'main'
Test repo created at /tmp/lazygitclj-e2e-undo
Starting lazygitclj...
Goodbye!
> echo 'more changes' >> file1.txt && bb --config /home/ajet/repos/lazygitclj/bb.edn start
Starting lazygitclj...
Goodbye!
>
────────────────────────────────────────────────────────────────────────────────