diff --git a/test/e2e/branch-operations.tape b/test/e2e/branch-operations.tape index 1218a87..45949bb 100644 --- a/test/e2e/branch-operations.tape +++ b/test/e2e/branch-operations.tape @@ -1,5 +1,5 @@ # VHS E2E test for lazygitclj - Branch operations -# Tests branch create, delete, rename, merge, checkout +# Tests branch create, checkout, delete, tab switching Output test/e2e/output/branch-operations.gif Output test/e2e/output/branch-operations.ascii @@ -13,15 +13,15 @@ Set Height 600 Set Framerate 10 # Setup test repo and run lazygitclj -Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-branch-ops && cd /tmp/lazygitclj-e2e-branch-ops && bb --config /home/ajet/repos/lazygitclj/bb.edn start" +Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-branch && cd /tmp/lazygitclj-e2e-branch && bb --config /home/ajet/repos/lazygitclj/bb.edn start" Enter Sleep 2s -# First, clean up working tree by stashing -Type "s" +# First, stage all files to clean working tree +Type "a" Sleep 500ms -# Switch to branches panel +# Switch to branches panel (3) Type "3" Sleep 500ms @@ -34,34 +34,37 @@ Enter Sleep 1s # Should have created and switched to test-branch -# Go back to main - select main first +# Navigate to main branch Type "j" Sleep 300ms Type "j" Sleep 300ms -# Enter to checkout main -Enter +# Checkout main with space +Type " " Sleep 1s # Navigate to test-branch and delete it with 'd' Type "k" Sleep 300ms +Type "k" +Sleep 300ms Type "d" Sleep 1s # Branch should be deleted -# Merge feature-branch into main -# Navigate to feature-branch -Type "k" -Sleep 300ms +# Switch to tags tab with ] +Type "]" +Sleep 500ms +Type "]" +Sleep 500ms -# Merge with 'M' -Type "M" -Sleep 1s - -# Should show merge message +# Switch back to local with [ +Type "[" +Sleep 500ms +Type "[" +Sleep 500ms # Quit Type "q" diff --git a/test/e2e/commit-operations.tape b/test/e2e/commit-operations.tape new file mode 100644 index 0000000..c026f86 --- /dev/null +++ b/test/e2e/commit-operations.tape @@ -0,0 +1,57 @@ +# VHS E2E test for lazygitclj - Commit operations +# Tests staging, committing, and commit panel operations + +Output test/e2e/output/commit-operations.gif +Output test/e2e/output/commit-operations.ascii + +Require bb + +Set Shell "bash" +Set FontSize 14 +Set Width 1000 +Set Height 600 +Set Framerate 10 + +# Setup test repo and run lazygitclj +Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-commit && cd /tmp/lazygitclj-e2e-commit && bb --config /home/ajet/repos/lazygitclj/bb.edn start" +Enter +Sleep 2s + +# Stage a file with space +Type " " +Sleep 500ms + +# Stage all with 'a' +Type "a" +Sleep 500ms + +# Commit with 'c' +Type "c" +Sleep 500ms +Set TypingSpeed 50ms +Type "Test commit message" +Enter +Sleep 1s + +# Should see commit message +# Go to commits panel (4) +Type "4" +Sleep 500ms + +# Navigate to see commits +Type "j" +Sleep 300ms + +# Checkout a commit with space (will detach HEAD) +# Skip this to avoid detached HEAD state + +# Create new branch from commit with 'n' +Type "n" +Sleep 500ms +Type "commit-branch" +Enter +Sleep 1s + +# Quit +Type "q" +Sleep 1s diff --git a/test/e2e/cursor-navigation.tape b/test/e2e/cursor-navigation.tape new file mode 100644 index 0000000..1529564 --- /dev/null +++ b/test/e2e/cursor-navigation.tape @@ -0,0 +1,52 @@ +# VHS E2E test for lazygitclj - Cursor navigation +# Tests for top/bottom and PgUp/PgDn for page scroll + +Output test/e2e/output/cursor-navigation.gif +Output test/e2e/output/cursor-navigation.ascii + +Require bb + +Set Shell "bash" +Set FontSize 14 +Set Width 1000 +Set Height 600 +Set Framerate 10 + +# Setup test repo with many files +Type "REPO=/tmp/lazygitclj-e2e-cursor && rm -rf $REPO && mkdir -p $REPO && cd $REPO && git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' && for i in $(seq 1 20); do echo \"content $i\" > file$i.txt; done && git add . && git commit -m 'Initial' && for i in $(seq 1 20); do echo \"modified $i\" >> file$i.txt; done && bb --config /home/ajet/repos/lazygitclj/bb.edn start" +Enter +Sleep 3s + +# Navigate down a few times +Type "j" +Sleep 200ms +Type "j" +Sleep 200ms +Type "j" +Sleep 200ms +Type "j" +Sleep 500ms + +# Go to top with < +Type "<" +Sleep 500ms + +# Go to bottom with > +Type ">" +Sleep 500ms + +# Page up +PageUp +Sleep 500ms + +# Page down +PageDown +Sleep 500ms + +# Go to top again +Type "<" +Sleep 500ms + +# Quit +Type "q" +Sleep 1s diff --git a/test/e2e/help-panel.tape b/test/e2e/help-panel.tape index 97da2da..dc5cf81 100644 --- a/test/e2e/help-panel.tape +++ b/test/e2e/help-panel.tape @@ -1,5 +1,5 @@ # VHS E2E test for lazygitclj - Help panel -# Tests help display (? key shows keybindings) +# Tests opening and closing help with ? Output test/e2e/output/help-panel.gif Output test/e2e/output/help-panel.ascii @@ -17,34 +17,22 @@ Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-help && cd /tmp/lazygitc Enter Sleep 2s -# Open help panel with '?' +# Open help with ? Type "?" Sleep 2s -# Help panel should show keybindings for: -# - Global keys (q, r, tab, 1-4, j/k, z/Z, p, P, ?, D) -# - Files panel (space, a, c, d, s, S) -# - Commits panel ([/], space, g, C, t, r, y) -# - Branches panel ([/], enter, n, d, R, M, f) -# - Stash panel (space, g, d, n) - -# Close help with escape -Escape -Sleep 500ms - -# Verify we're back to normal view -Type "j" -Sleep 500ms - -# Open help again with '?' +# Close help with ? Type "?" Sleep 1s -# Close with 'q' (also works) -Type "q" -Sleep 500ms +# Open help again +Type "?" +Sleep 1s + +# Close with q +Type "q" +Sleep 1s -# Should be back to normal view # Quit the app Type "q" Sleep 1s diff --git a/test/e2e/navigation.tape b/test/e2e/navigation.tape index 72cabf4..697f597 100644 --- a/test/e2e/navigation.tape +++ b/test/e2e/navigation.tape @@ -1,5 +1,5 @@ -# VHS E2E test for lazygitclj - Basic navigation -# Tests panel switching and cursor movement (like lazygit) +# VHS E2E test for lazygitclj - Navigation and panel switching +# Tests h/l panel navigation, number keys, and cursor movement Output test/e2e/output/navigation.gif Output test/e2e/output/navigation.ascii @@ -17,8 +17,8 @@ Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-nav && cd /tmp/lazygitcl Enter Sleep 2s -# Should start on Files panel (panel 1) -# Navigate down with j (vim style like lazygit) +# Should start on Files panel (panel 2) +# Navigate down with j (vim style) Type "j" Sleep 500ms Type "j" @@ -28,45 +28,51 @@ Sleep 500ms Type "k" Sleep 500ms -# Switch to Commits panel with Tab -Tab -Sleep 500ms - -# Navigate commits -Type "j" -Sleep 500ms -Type "k" -Sleep 500ms - -# Switch to Branches panel with Tab -Tab +# Switch to Branches panel with l +Type "l" Sleep 500ms # Navigate branches Type "j" Sleep 500ms -# Switch back to Files using number key (like lazygit) -Type "1" +# Switch to Commits panel with l +Type "l" Sleep 500ms -# Switch to Commits with number key -Type "2" +# Switch to Stash panel with l +Type "l" Sleep 500ms -# Switch to Branches with number key +# Go back to Files with h +Type "h" +Sleep 300ms +Type "h" +Sleep 300ms +Type "h" +Sleep 500ms + +# Switch to Branches using number key (3) Type "3" Sleep 500ms -# Test arrow keys too -Up -Sleep 300ms +# Switch to Commits using number key (4) +Type "4" +Sleep 500ms + +# Switch to Stash using number key (5) +Type "5" +Sleep 500ms + +# Go back to Files (2) +Type "2" +Sleep 500ms + +# Test arrow keys Down Sleep 300ms - -# Refresh with r -Type "r" -Sleep 500ms +Up +Sleep 300ms # Quit with q Type "q" diff --git a/test/e2e/output/branch-operations.ascii b/test/e2e/output/branch-operations.ascii new file mode 100644 index 0000000..aacfa62 --- /dev/null +++ b/test/e2e/output/branch-operations.ascii @@ -0,0 +1,1356 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-branch && cd /tmp/lazygitclj-e2e-branch && +bb --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-branch && cd /tmp/lazygitclj-e2e-branch && +bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-branch/.git/ +[main (root-commit) 5c50833] 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 2564148] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-branch +Starting lazygitclj... + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > file1.txt ║ +║ A new-file.txt ║ +║ ║ +║ ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (2 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > file1.txt ║ +║ A new-file.txt ║ +║ ║ +║ ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (2 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (2) ══════╗ +║ > feature-branch ║ +║ * main ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (2 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (2) ══════╗ +║ > feature-branch ║ +║ * main ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (2 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╭─ new-branch ╮ +│ > _ │ +╰─────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╭─ new-branch ╮ +│ > _ │ +╰─────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╭─ new-branch ╮ +│ > _ │ +╰─────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (5c50833) + + + +╭─ new-branch ───╮ +│ > test-branch_ │ +╰────────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ══════╗ +║ > feature-branch ║ +║ main ║ +║ * test-branch ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ══════╗ +║ > feature-branch ║ +║ main ║ +║ * test-branch ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ════╗ +║ feature-branch ║ +║ > main ║ +║ * test-branch ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ════╗ +║ feature-branch ║ +║ > main ║ +║ * test-branch ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ════╗ +║ feature-branch ║ +║ main ║ +║ * > test-branch ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ════╗ +║ feature-branch ║ +║ main ║ +║ * > test-branch ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ════╗ +║ feature-branch ║ +║ main ║ +║ * > test-branch ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ════╗ +║ feature-branch ║ +║ main ║ +║ * > test-branch ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ════╗ +║ feature-branch ║ +║ > main ║ +║ * test-branch ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ════╗ +║ feature-branch ║ +║ > main ║ +║ * test-branch ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ══════╗ +║ > feature-branch ║ +║ main ║ +║ * test-branch ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Created branch test-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ══════╗ +║ > feature-branch ║ +║ main ║ +║ * test-branch ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ══════╗ +║ > feature-branch ║ +║ main ║ +║ * test-branch ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ══════╗ +║ > feature-branch ║ +║ main ║ +║ * test-branch ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Remote (0) ╗ +║ No remote ║ +╚═══════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Remote (0) ╗ +║ No remote ║ +╚═══════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Tags (0) ╗ +║ No tags ║ +╚═════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Tags (0) ╗ +║ No tags ║ +╚═════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Remote (0) ╗ +║ No remote ║ +╚═══════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Remote (0) ╗ +║ No remote ║ +╚═══════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ══════╗ +║ > feature-branch ║ +║ main ║ +║ * test-branch ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj test-branch (5c50833) + + Deleted branch feature-branch + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M file1.txt │ +│ A new-file.txt │ +│ │ +│ │ +╰─────────────────╯ +╔═ 3 Local (3) ══════╗ +║ > feature-branch ║ +║ main ║ +║ * test-branch ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 5c50833 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-branch && cd /tmp/lazygitclj-e2e-branch && +bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-branch/.git/ +[main (root-commit) 5c50833] 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 2564148] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-branch +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-branch && cd /tmp/lazygitclj-e2e-branch && +bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-branch/.git/ +[main (root-commit) 5c50833] 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 2564148] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-branch +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/branch-operations.gif b/test/e2e/output/branch-operations.gif new file mode 100644 index 0000000..aaccb6f Binary files /dev/null and b/test/e2e/output/branch-operations.gif differ diff --git a/test/e2e/output/branches.ascii b/test/e2e/output/branches.ascii new file mode 100644 index 0000000..2406078 --- /dev/null +++ b/test/e2e/output/branches.ascii @@ -0,0 +1,696 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> cd /tmp && rm -rf lazygitclj-e2e-branch && git clone /tmp/lazygitclj-e2e-nav lazygitclj-e2e-branch +2>/dev/null && cd lazygitclj-e2e-branch && git checkout main && bb --config /home/ajet/repos/claj +ygit/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> cd /tmp && rm -rf lazygitclj-e2e-branch && git clone /tmp/lazygitclj-e2e-nav lazygitclj-e2e-branch +2>/dev/null && cd lazygitclj-e2e-branch && git checkout main && bb --config /home/ajet/repos/claj +ygit/bb.edn start +Already on 'main' +Your branch is up to date with 'origin/main'. +Starting lazygitclj... + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╔═ 1 Files (0) ═════╗ +║ Clean working tree ║ +╚════════════════════╝ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╭─ 3 Branches (1) ╮ +│ * main │ +╰─────────────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╭─ 1 Files (0) ─────╮ +│ Clean working tree │ +╰────────────────────╯ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╔═ 3 Branches (1) ╗ +║ > * main ║ +╚═════════════════╝ + +q:quit r:refresh tab:switch enter:checkout p:pull P:push + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╭─ 1 Files (0) ─────╮ +│ Clean working tree │ +╰────────────────────╯ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╔═ 3 Branches (1) ╗ +║ > * main ║ +╚═════════════════╝ + +q:quit r:refresh tab:switch enter:checkout p:pull P:push + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╭─ 1 Files (0) ─────╮ +│ Clean working tree │ +╰────────────────────╯ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╔═ 3 Branches (1) ╗ +║ > * main ║ +╚═════════════════╝ + +q:quit r:refresh tab:switch enter:checkout p:pull P:push + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╭─ 1 Files (0) ─────╮ +│ Clean working tree │ +╰────────────────────╯ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╔═ 3 Branches (1) ╗ +║ > * main ║ +╚═════════════════╝ + +q:quit r:refresh tab:switch enter:checkout p:pull P:push + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╭─ 1 Files (0) ─────╮ +│ Clean working tree │ +╰────────────────────╯ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╔═ 3 Branches (1) ╗ +║ > * main ║ +╚═════════════════╝ + +q:quit r:refresh tab:switch enter:checkout p:pull P:push + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╭─ 1 Files (0) ─────╮ +│ Clean working tree │ +╰────────────────────╯ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╔═ 3 Branches (1) ╗ +║ > * main ║ +╚═════════════════╝ + +q:quit r:refresh tab:switch enter:checkout p:pull P:push + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╔═ 1 Files (0) ═════╗ +║ Clean working tree ║ +╚════════════════════╝ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╭─ 3 Branches (1) ╮ +│ * main │ +╰─────────────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (8837ca0) ↑0 ↓0 + + + +╔═ 1 Files (0) ═════╗ +║ Clean working tree ║ +╚════════════════════╝ +╭─ 2 Commits (1) ──────────────────────────╮ +│ 8837ca0 Initial commit (81 seconds ago) │ +╰───────────────────────────────────────────╯ +╭─ 3 Branches (1) ╮ +│ * main │ +╰─────────────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> cd /tmp && rm -rf lazygitclj-e2e-branch && git clone /tmp/lazygitclj-e2e-nav lazygitclj-e2e-branch +2>/dev/null && cd lazygitclj-e2e-branch && git checkout main && bb --config /home/ajet/repos/claj +ygit/bb.edn start +Already on 'main' +Your branch is up to date with 'origin/main'. +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> cd /tmp && rm -rf lazygitclj-e2e-branch && git clone /tmp/lazygitclj-e2e-nav lazygitclj-e2e-branch +2>/dev/null && cd lazygitclj-e2e-branch && git checkout main && bb --config /home/ajet/repos/claj +ygit/bb.edn start +Already on 'main' +Your branch is up to date with 'origin/main'. +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/branches.gif b/test/e2e/output/branches.gif new file mode 100644 index 0000000..6a1aea6 Binary files /dev/null and b/test/e2e/output/branches.gif differ diff --git a/test/e2e/output/commit-verify.ascii b/test/e2e/output/commit-verify.ascii new file mode 100644 index 0000000..0b8a18e --- /dev/null +++ b/test/e2e/output/commit-verify.ascii @@ -0,0 +1,1506 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 84eed70 │ │ │ +└────────────────────────────┘ │ │ +╔═ 2 Files (1) ══════════════╗ │ │ +║ ?? test-file.txt ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 84eed70 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 → 84eed70 │ │ diff --git a/test-file.txt b/test-file.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (1) ══════════════╗ │ index 0000000..e11a339 │ +║ A test-file.txt ║ │ --- /dev/null │ +║ ║ │ +++ b/test-file.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +test content for commit │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 84eed70 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 → 84eed70 │ │ diff --git a/test-file.txt b/test-file.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (1) ══════════════╗ │ index 0000000..e11a339 │ +║ A test-file.txt ║ │ --- /dev/null │ +║ ║ │ +++ b/test-file.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +test content for commit │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 84eed70 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 → 84eed70 │ │ diff --git a/test-file.txt b/test-file.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (1) ══════════════╗ │ index 0000000..e11a339 │ +║ A test-file.txt ║ │ --- /dev/null │ +║ ║ │ +++ b/test-file.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +test content for commit │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ ╭─ Commit Message ───────────────────────────────╮ │ +└─────────────────────│ █ │ │ +┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │ +│ 84eed70 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 → 84eed70 │ │ diff --git a/test-file.txt b/test-file.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (1) ══════════════╗ │ index 0000000..e11a339 │ +║ A test-file.txt ║ │ --- /dev/null │ +║ ║ │ +++ b/test-file.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +test content for commit │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ ╭─ Commit Message ───────────────────────────────╮ │ +└─────────────────────│ █ │ │ +┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │ +│ 84eed70 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 → 84eed70 │ │ diff --git a/test-file.txt b/test-file.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (1) ══════════════╗ │ index 0000000..e11a339 │ +║ A test-file.txt ║ │ --- /dev/null │ +║ ║ │ +++ b/test-file.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +test content for commit │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ ╭─ Commit Message ───────────────────────────────╮ │ +└─────────────────────│ █ │ │ +┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │ +│ 84eed70 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 → 84eed70 │ │ diff --git a/test-file.txt b/test-file.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (1) ══════════════╗ │ index 0000000..e11a339 │ +║ A test-file.txt ║ │ --- /dev/null │ +║ ║ │ +++ b/test-file.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +test content for commit │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ ╭─ Commit Message ───────────────────────────────╮ │ +└─────────────────────│ Add test file via lazygitclj█ │ │ +┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │ +│ 84eed70 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 → 84eed70 │ │ diff --git a/test-file.txt b/test-file.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (1) ══════════════╗ │ index 0000000..e11a339 │ +║ A test-file.txt ║ │ --- /dev/null │ +║ ║ │ +++ b/test-file.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +test content for commit │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ ╭─ Commit Message ───────────────────────────────╮ │ +└─────────────────────│ Add test file via lazygitclj█ │ │ +┌─ 4 Commits [C] R ───╰────────────────────────────────────────────────╯ │ +│ 84eed70 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 → 1aee5f4 │ │ Select an item to view diff │ +└────────────────────────────┘ │ │ +╔═ 2 Files (0) ══════════════╗ │ │ +║ No changes ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 1aee5f4 Add test file ... │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 → 1aee5f4 │ │ Select an item to view diff │ +└────────────────────────────┘ │ │ +╔═ 2 Files (0) ══════════════╗ │ │ +║ No changes ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 1aee5f4 Add test file ... │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 → 1aee5f4 │ │ commit 1aee5f47e2c6d2422f70dc9cce7c41597c1cff6f │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (0) ──────────────┐ │ Date: Wed Jan 21 16:41:57 2026 -0500 │ +│ No changes │ │ │ +│ │ │ Add test file via lazygitclj │ +│ │ │ --- │ +│ │ │ test-file.txt | 1 + │ +└────────────────────────────┘ │ 1 file changed, 1 insertion(+) │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ diff --git a/test-file.txt b/test-file.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..e11a339 │ +│ │ │ --- /dev/null │ +└────────────────────────────┘ │ +++ b/test-file.txt │ +╔═ 4 Commits [C] R ══════════╗ │ @@ -0,0 +1 @@ │ +║ 1aee5f4 Add test file ... ║ │ +test content for commit │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── + Committed! +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 1aee5f4 │ │ commit 1aee5f47e2c6d2422f70dc9cce7c41597c1cff6f │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (0) ──────────────┐ │ Date: Wed Jan 21 16:41:57 2026 -0500 │ +│ No changes │ │ │ +│ │ │ Add test file via lazygitclj │ +│ │ │ --- │ +│ │ │ test-file.txt | 1 + │ +└────────────────────────────┘ │ 1 file changed, 1 insertion(+) │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ * main │ │ diff --git a/test-file.txt b/test-file.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..e11a339 │ +│ │ │ --- /dev/null │ +└────────────────────────────┘ │ +++ b/test-file.txt │ +╔═ 4 Commits [C] R ══════════╗ │ @@ -0,0 +1 @@ │ +║ 1aee5f4 Add test file ... ║ │ +test content for commit │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 +1aee5f4 (HEAD -> main) Add test file via lazygitclj +84eed70 Initial commit +> + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 +1aee5f4 (HEAD -> main) Add test file via lazygitclj +84eed70 Initial commit +> + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 +1aee5f4 (HEAD -> main) Add test file via lazygitclj +84eed70 Initial commit +> git status + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 +1aee5f4 (HEAD -> main) Add test file via lazygitclj +84eed70 Initial commit +> git status +On branch main +nothing to commit, working tree clean +> + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 +1aee5f4 (HEAD -> main) Add test file via lazygitclj +84eed70 Initial commit +> git status +On branch main +nothing to commit, working tree clean +> + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 +1aee5f4 (HEAD -> main) Add test file via lazygitclj +84eed70 Initial commit +> git status +On branch main +nothing to commit, working tree clean +> git show --stat HEAD + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 +1aee5f4 (HEAD -> main) Add test file via lazygitclj +84eed70 Initial commit +> git status +On branch main +nothing to commit, working tree clean +> git show --stat HEAD +commit 1aee5f47e2c6d2422f70dc9cce7c41597c1cff6f (HEAD -> main) +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-e2e-commit-verify && mkdir -p /tmp/lazygitclj-e2e-commit-verify && cd /tmp +/lazygitclj-e2e-commit-verify +> git init -b main && git config user.email 'test@example.com' && git config user.name 'Test Us +er' +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit-verify/.git/ +> echo 'initial' > README.md && git add . && git commit -m 'Initial commit' +[main (root-commit) 84eed70] Initial commit + 1 file changed, 1 insertion(+) + create mode 100644 README.md +> echo 'test content for commit' > test-file.txt +> ls -la +total 52 +drwxrwxr-x 3 ajet ajet 4096 Jan 21 16:41 . +drwxrwxrwt 65 root root 36864 Jan 21 16:41 .. +drwxrwxr-x 8 ajet ajet 4096 Jan 21 16:41 .git +-rw-rw-r-- 1 ajet ajet 8 Jan 21 16:41 README.md +-rw-rw-r-- 1 ajet ajet 24 Jan 21 16:41 test-file.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> git log --oneline -2 +1aee5f4 (HEAD -> main) Add test file via lazygitclj +84eed70 Initial commit +> git status +On branch main +nothing to commit, working tree clean +> git show --stat HEAD +commit 1aee5f47e2c6d2422f70dc9cce7c41597c1cff6f (HEAD -> main) +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/commit-verify.gif b/test/e2e/output/commit-verify.gif new file mode 100644 index 0000000..2782ffb Binary files /dev/null and b/test/e2e/output/commit-verify.gif differ diff --git a/test/e2e/output/commit.ascii b/test/e2e/output/commit.ascii new file mode 100644 index 0000000..50ef618 --- /dev/null +++ b/test/e2e/output/commit.ascii @@ -0,0 +1,906 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-commit && cd /tmp/lazygitclj-e2e-commit && bb - +-config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-commit && cd /tmp/lazygitclj-e2e-commit && bb - +-config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-commit/.git/ +[main (root-commit) bbbe757] 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 29e8112] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-commit + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + + +╔═ 1 Files (3) ═══╗ +║ Staged: ║ +║ > M file2.txt ║ +║ ║ +║ Unstaged: ║ +║ M file1.txt ║ +║ ?? newfile.txt ║ +╚══════════════════╝ +╭─ 2 Commits (1) ─────────────────────────╮ +│ bbbe757 Initial commit (0 seconds ago) │ +╰──────────────────────────────────────────╯ +╭─ 3 Branches (2) ──╮ +│ feature-branch │ +│ * main │ +╰────────────────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + + +╔═ 1 Files (3) ═══╗ +║ Staged: ║ +║ > M file1.txt ║ +║ M file2.txt ║ +║ A newfile.txt ║ +║ ║ +║ ║ +╚══════════════════╝ +╭─ 2 Commits (1) ─────────────────────────╮ +│ bbbe757 Initial commit (2 seconds ago) │ +╰──────────────────────────────────────────╯ +╭─ 3 Branches (2) ──╮ +│ feature-branch │ +│ * main │ +╰────────────────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + + +╔═ 1 Files (3) ═══╗ +║ Staged: ║ +║ > M file1.txt ║ +║ M file2.txt ║ +║ A newfile.txt ║ +║ ║ +║ ║ +╚══════════════════╝ +╭─ 2 Commits (1) ─────────────────────────╮ +│ bbbe757 Initial commit (2 seconds ago) │ +╰──────────────────────────────────────────╯ +╭─ 3 Branches (2) ──╮ +│ feature-branch │ +│ * main │ +╰────────────────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (bbbe757) + + Commit message cannot be empty + +╭─ commit ╮ +│ > _ │ +╰─────────╯ + +q:quit r:refresh tab:switch space:stage/unstage a:stage all c:commit d:discard p:pull P: +push + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/commit.gif b/test/e2e/output/commit.gif new file mode 100644 index 0000000..9d77f49 Binary files /dev/null and b/test/e2e/output/commit.gif differ diff --git a/test/e2e/output/commits-tabs.ascii b/test/e2e/output/commits-tabs.ascii new file mode 100644 index 0000000..af75a06 --- /dev/null +++ b/test/e2e/output/commits-tabs.ascii @@ -0,0 +1,816 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-commits-tabs && cd /tmp/lazygitclj-e2e-commits- +tabs && bb --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-commits-tabs && cd /tmp/lazygitclj-e2e-commits- +tabs && bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-commits-tabs/.git/ +[main (root-commit) dba4a40] 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 8f863df] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-commits-tabs + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╔═ 1 Files (3) ═╗ +║ Staged: ║ +║ M > file2.txt ║ +║ ║ +║ Unstaged: ║ +║ M file1.txt ║ +║ ?? newfile.txt ║ +╚════════════════╝ +╭─ 2 [Commits] | Reflog (1) ────────────╮ +│ dba4a40 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset spc:stage a:all c:commit d:discard s/S:stash p/P:pull/push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 [Commits] | Reflog (1) ══════════════╗ +║ dba4a40 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 [Commits] | Reflog (1) ══════════════╗ +║ dba4a40 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 Commits | [Reflog] (4) ════════════════════════════════════╗ +║ dba4a40 > checkout: moving from feature-branch to ... HEAD@{0} ║ +║ 8f863df commit: Feature work HEAD@{1} ║ +║ dba4a40 checkout: moving from main to feature-br... HEAD@{2} ║ +║ dba4a40 commit (initial): Initial commit HEAD@{3} ║ +╚════════════════════════════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 Commits | [Reflog] (4) ════════════════════════════════════╗ +║ dba4a40 > checkout: moving from feature-branch to ... HEAD@{0} ║ +║ 8f863df commit: Feature work HEAD@{1} ║ +║ dba4a40 checkout: moving from main to feature-br... HEAD@{2} ║ +║ dba4a40 commit (initial): Initial commit HEAD@{3} ║ +╚════════════════════════════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 Commits | [Reflog] (4) ══════════════════════════════════╗ +║ dba4a40 checkout: moving from feature-branch to ... HEAD@{0} ║ +║ 8f863df > commit: Feature work HEAD@{1} ║ +║ dba4a40 checkout: moving from main to feature-br... HEAD@{2} ║ +║ dba4a40 commit (initial): Initial commit HEAD@{3} ║ +╚══════════════════════════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 Commits | [Reflog] (4) ══════════════════════════════════╗ +║ dba4a40 checkout: moving from feature-branch to ... HEAD@{0} ║ +║ 8f863df > commit: Feature work HEAD@{1} ║ +║ dba4a40 checkout: moving from main to feature-br... HEAD@{2} ║ +║ dba4a40 commit (initial): Initial commit HEAD@{3} ║ +╚══════════════════════════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 Commits | [Reflog] (4) ════════════════════════════════════╗ +║ dba4a40 > checkout: moving from feature-branch to ... HEAD@{0} ║ +║ 8f863df commit: Feature work HEAD@{1} ║ +║ dba4a40 checkout: moving from main to feature-br... HEAD@{2} ║ +║ dba4a40 commit (initial): Initial commit HEAD@{3} ║ +╚════════════════════════════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 Commits | [Reflog] (4) ════════════════════════════════════╗ +║ dba4a40 > checkout: moving from feature-branch to ... HEAD@{0} ║ +║ 8f863df commit: Feature work HEAD@{1} ║ +║ dba4a40 checkout: moving from main to feature-br... HEAD@{2} ║ +║ dba4a40 commit (initial): Initial commit HEAD@{3} ║ +╚════════════════════════════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 [Commits] | Reflog (1) ══════════════╗ +║ dba4a40 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 [Commits] | Reflog (1) ══════════════╗ +║ dba4a40 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 [Commits] | Reflog (1) ══════════════╗ +║ dba4a40 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dba4a40) + + + +╭─ 1 Files (3) ─╮ +│ Staged: │ +│ M file2.txt │ +│ │ +│ Unstaged: │ +│ M file1.txt │ +│ ?? newfile.txt │ +╰────────────────╯ +╔═ 2 [Commits] | Reflog (1) ══════════════╗ +║ dba4a40 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset []:tabs spc:checkout t:revert C:cherry-pick p/P:pull/push + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-commits-tabs && cd /tmp/lazygitclj-e2e-commits- +tabs && bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-commits-tabs/.git/ +[main (root-commit) dba4a40] 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 8f863df] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-commits-tabs + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-commits-tabs && cd /tmp/lazygitclj-e2e-commits- +tabs && bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-commits-tabs/.git/ +[main (root-commit) dba4a40] 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 8f863df] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-commits-tabs + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/commits-tabs.gif b/test/e2e/output/commits-tabs.gif new file mode 100644 index 0000000..58ec2dd Binary files /dev/null and b/test/e2e/output/commits-tabs.gif differ diff --git a/test/e2e/output/debug.ascii b/test/e2e/output/debug.ascii new file mode 100644 index 0000000..de8f89c --- /dev/null +++ b/test/e2e/output/debug.ascii @@ -0,0 +1,636 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> cd /tmp/lazygitclj-debug && git status --porcelain + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> cd /tmp/lazygitclj-debug && git status --porcelain + M file1.txt +M file2.txt +?? newfile.txt +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> cd /tmp/lazygitclj-debug && git status --porcelain + M file1.txt +M file2.txt +?? newfile.txt +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> cd /tmp/lazygitclj-debug && git status --porcelain + M file1.txt +M file2.txt +?? newfile.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> cd /tmp/lazygitclj-debug && git status --porcelain + M file1.txt +M file2.txt +?? newfile.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (dd04b48) + + + +╔═ 1 Files (3) ═╗ +║ Staged: ║ +║ M > file2.txt ║ +║ ║ +║ Unstaged: ║ +║ M file1.txt ║ +║ ?? newfile.txt ║ +╚════════════════╝ +╭─ 2 [Commits] | Reflog (1) ────────────╮ +│ dd04b48 Initial commit (9 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 3 [Local] | Remotes | Tags (2) ╮ +│ feature-branch │ +│ * main │ +╰─────────────────────────────────╯ +╭─ 4 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help D:reset spc:stage a:all c:commit d:discard s/S:stash p/P:pull/push + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> cd /tmp/lazygitclj-debug && git status --porcelain + M file1.txt +M file2.txt +?? newfile.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-debug +Initialized empty Git repository in /tmp/lazygitclj-debug/.git/ +[main (root-commit) dd04b48] 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 18fb092] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-debug + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +> cd /tmp/lazygitclj-debug && git status --porcelain + M file1.txt +M file2.txt +?? newfile.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/debug.gif b/test/e2e/output/debug.gif new file mode 100644 index 0000000..70216eb Binary files /dev/null and b/test/e2e/output/debug.gif differ diff --git a/test/e2e/output/help-panel.ascii b/test/e2e/output/help-panel.ascii new file mode 100644 index 0000000..14c5033 --- /dev/null +++ b/test/e2e/output/help-panel.ascii @@ -0,0 +1,696 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-help && cd /tmp/lazygitclj-e2e-help && bb - +-config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-help && cd /tmp/lazygitclj-e2e-help && bb - +-config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-help/.git/ +[main (root-commit) d81ba5b] 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 da5a877] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-help +Starting lazygitclj... + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (d81ba5b) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ d81ba5b Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +╔═ Help - Press ? or q to close ════════════════╗ +║ ║ +║ Global: ║ +║ q - Quit r - Refresh ? - Help ║ +║ h/l - Switch panels 2-5 - Jump to panel ║ +║ j/k - Move cursor - Top/Bottom ║ +║ p - Pull P - Push ║ +║ ║ +║ Files (2): ║ +║ space - Stage/unstage a - Toggle all ║ +║ c - Commit d - Discard ║ +║ s - Stash all ║ +║ ║ +║ Branches (3): ║ +║ space/enter - Checkout n - New branch ║ +║ d - Delete R - Rename M - Merge ║ +║ [/] - Switch tabs - - Previous ║ +║ ║ +║ Commits (4): ║ +║ space - Checkout C - Cherry-pick ║ +║ t - Revert g - Reset to ║ +║ n - New branch from commit ║ +║ ║ +║ Stash (5): ║ +║ space - Apply g - Pop ║ +║ d - Drop n - Branch from stash ║ +║ ║ +╚═══════════════════════════════════════════════╝ + +──────────────────────────────────────────────────────────────────────────────── +╔═ Help - Press ? or q to close ════════════════╗ +║ ║ +║ Global: ║ +║ q - Quit r - Refresh ? - Help ║ +║ h/l - Switch panels 2-5 - Jump to panel ║ +║ j/k - Move cursor - Top/Bottom ║ +║ p - Pull P - Push ║ +║ ║ +║ Files (2): ║ +║ space - Stage/unstage a - Toggle all ║ +║ c - Commit d - Discard ║ +║ s - Stash all ║ +║ ║ +║ Branches (3): ║ +║ space/enter - Checkout n - New branch ║ +║ d - Delete R - Rename M - Merge ║ +║ [/] - Switch tabs - - Previous ║ +║ ║ +║ Commits (4): ║ +║ space - Checkout C - Cherry-pick ║ +║ t - Revert g - Reset to ║ +║ n - New branch from commit ║ +║ ║ +║ Stash (5): ║ +║ space - Apply g - Pop ║ +║ d - Drop n - Branch from stash ║ +║ ║ +╚═══════════════════════════════════════════════╝ + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (d81ba5b) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ d81ba5b Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (d81ba5b) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ d81ba5b Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +╔═ Help - Press ? or q to close ════════════════╗ +║ ║ +║ Global: ║ +║ q - Quit r - Refresh ? - Help ║ +║ h/l - Switch panels 2-5 - Jump to panel ║ +║ j/k - Move cursor - Top/Bottom ║ +║ p - Pull P - Push ║ +║ ║ +║ Files (2): ║ +║ space - Stage/unstage a - Toggle all ║ +║ c - Commit d - Discard ║ +║ s - Stash all ║ +║ ║ +║ Branches (3): ║ +║ space/enter - Checkout n - New branch ║ +║ d - Delete R - Rename M - Merge ║ +║ [/] - Switch tabs - - Previous ║ +║ ║ +║ Commits (4): ║ +║ space - Checkout C - Cherry-pick ║ +║ t - Revert g - Reset to ║ +║ n - New branch from commit ║ +║ ║ +║ Stash (5): ║ +║ space - Apply g - Pop ║ +║ d - Drop n - Branch from stash ║ +║ ║ +╚═══════════════════════════════════════════════╝ + +──────────────────────────────────────────────────────────────────────────────── +╔═ Help - Press ? or q to close ════════════════╗ +║ ║ +║ Global: ║ +║ q - Quit r - Refresh ? - Help ║ +║ h/l - Switch panels 2-5 - Jump to panel ║ +║ j/k - Move cursor - Top/Bottom ║ +║ p - Pull P - Push ║ +║ ║ +║ Files (2): ║ +║ space - Stage/unstage a - Toggle all ║ +║ c - Commit d - Discard ║ +║ s - Stash all ║ +║ ║ +║ Branches (3): ║ +║ space/enter - Checkout n - New branch ║ +║ d - Delete R - Rename M - Merge ║ +║ [/] - Switch tabs - - Previous ║ +║ ║ +║ Commits (4): ║ +║ space - Checkout C - Cherry-pick ║ +║ t - Revert g - Reset to ║ +║ n - New branch from commit ║ +║ ║ +║ Stash (5): ║ +║ space - Apply g - Pop ║ +║ d - Drop n - Branch from stash ║ +║ ║ +╚═══════════════════════════════════════════════╝ + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (d81ba5b) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ d81ba5b Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (d81ba5b) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ d81ba5b Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-help && cd /tmp/lazygitclj-e2e-help && bb - +-config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-help/.git/ +[main (root-commit) d81ba5b] 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 da5a877] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-help +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-help && cd /tmp/lazygitclj-e2e-help && bb - +-config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-help/.git/ +[main (root-commit) d81ba5b] 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 da5a877] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-help +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/help-panel.gif b/test/e2e/output/help-panel.gif new file mode 100644 index 0000000..bbf295e Binary files /dev/null and b/test/e2e/output/help-panel.gif differ diff --git a/test/e2e/output/keys-navigation.ascii b/test/e2e/output/keys-navigation.ascii new file mode 100644 index 0000000..c68d591 --- /dev/null +++ b/test/e2e/output/keys-navigation.ascii @@ -0,0 +1,3598 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index e79c5e8..e5f18d7 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +staged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index e79c5e8..e5f18d7 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +staged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index e79c5e8..e5f18d7 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +staged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index e79c5e8..40e29ef 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │ +║ M file2.txt ║ │ +++ b/file1.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +unstaged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index e79c5e8..40e29ef 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file1.txt │ +║ M file2.txt ║ │ +++ b/file1.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +unstaged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index e79c5e8..e5f18d7 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +staged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index e79c5e8..e5f18d7 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +staged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index e79c5e8..e5f18d7 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +staged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +╔═ Staged changes: file2.txt ═════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ diff --git a/file2.txt b/file2.txt ║ +║ index e79c5e8..e5f18d7 100644 ║ +║ --- a/file2.txt ║ +║ +++ b/file2.txt ║ +║ @@ -1 +1,2 @@ ║ +║ initial ║ +║ +staged change ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Staged changes: file2.txt ═════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ diff --git a/file2.txt b/file2.txt ║ +║ index e79c5e8..e5f18d7 100644 ║ +║ --- a/file2.txt ║ +║ +++ b/file2.txt ║ +║ @@ -1 +1,2 @@ ║ +║ initial ║ +║ +staged change ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Staged changes: file2.txt ═════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ diff --git a/file2.txt b/file2.txt ║ +║ index e79c5e8..e5f18d7 100644 ║ +║ --- a/file2.txt ║ +║ +++ b/file2.txt ║ +║ @@ -1 +1,2 @@ ║ +║ initial ║ +║ +staged change ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Staged changes: file2.txt ═════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ diff --git a/file2.txt b/file2.txt ║ +║ index e79c5e8..e5f18d7 100644 ║ +║ --- a/file2.txt ║ +║ +++ b/file2.txt ║ +║ @@ -1 +1,2 @@ ║ +║ initial ║ +║ +staged change ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index e79c5e8..e5f18d7 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +staged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index e79c5e8..e5f18d7 100644 │ +╔═ 2 Files (2) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ║ │ initial │ +║ ║ │ +staged change │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage enter:view a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +╔═ Log: main ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ 55b40c5 Initial commit ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Log: main ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ 55b40c5 Initial commit ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Log: main ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ 55b40c5 Initial commit ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Log: main ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ 55b40c5 Initial commit ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (2) ──────────────┐ │ │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:log n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ commit 55b40c502e1306dd52ba7ed077bcfe3baf80042d │ +└────────────────────────────┘ │ Author: Test │ +┌─ 2 Files (2) ──────────────┐ │ Date: Wed Jan 21 18:07:51 2026 -0500 │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ Initial commit │ +│ │ │ --- │ +│ │ │ file1.txt | 1 + │ +│ │ │ file2.txt | 1 + │ +│ │ │ 2 files changed, 2 insertions(+) │ +│ │ │ │ +│ │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000000..e79c5e8 │ +│ feature │ │ --- /dev/null │ +│ * main │ │ +++ b/file1.txt │ +│ │ │ @@ -0,0 +1 @@ │ +│ │ │ +initial │ +│ │ │ diff --git a/file2.txt b/file2.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..e79c5e8 │ +│ │ │ --- /dev/null │ +└────────────────────────────┘ │ +++ b/file2.txt │ +╔═ 4 Commits [C] R ══════════╗ │ @@ -0,0 +1 @@ │ +║ 55b40c5 Initial commit ║ │ +initial │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:files p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ commit 55b40c502e1306dd52ba7ed077bcfe3baf80042d │ +└────────────────────────────┘ │ Author: Test │ +┌─ 2 Files (2) ──────────────┐ │ Date: Wed Jan 21 18:07:51 2026 -0500 │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ Initial commit │ +│ │ │ --- │ +│ │ │ file1.txt | 1 + │ +│ │ │ file2.txt | 1 + │ +│ │ │ 2 files changed, 2 insertions(+) │ +│ │ │ │ +│ │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000000..e79c5e8 │ +│ feature │ │ --- /dev/null │ +│ * main │ │ +++ b/file1.txt │ +│ │ │ @@ -0,0 +1 @@ │ +│ │ │ +initial │ +│ │ │ diff --git a/file2.txt b/file2.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..e79c5e8 │ +│ │ │ --- /dev/null │ +└────────────────────────────┘ │ +++ b/file2.txt │ +╔═ 4 Commits [C] R ══════════╗ │ @@ -0,0 +1 @@ │ +║ 55b40c5 Initial commit ║ │ +initial │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:files p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ commit 55b40c502e1306dd52ba7ed077bcfe3baf80042d │ +└────────────────────────────┘ │ Author: Test │ +┌─ 2 Files (2) ──────────────┐ │ Date: Wed Jan 21 18:07:51 2026 -0500 │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ Initial commit │ +│ │ │ --- │ +│ │ │ file1.txt | 1 + │ +│ │ │ file2.txt | 1 + │ +│ │ │ 2 files changed, 2 insertions(+) │ +│ │ │ │ +│ │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000000..e79c5e8 │ +│ feature │ │ --- /dev/null │ +│ * main │ │ +++ b/file1.txt │ +│ │ │ @@ -0,0 +1 @@ │ +│ │ │ +initial │ +│ │ │ diff --git a/file2.txt b/file2.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..e79c5e8 │ +│ │ │ --- /dev/null │ +└────────────────────────────┘ │ +++ b/file2.txt │ +╔═ 4 Commits [C] R ══════════╗ │ @@ -0,0 +1 @@ │ +║ 55b40c5 Initial commit ║ │ +initial │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:files p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +╔═ Files in 55b40c5 ══════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ No files ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Files in 55b40c5 ══════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ No files ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Files in 55b40c5 ══════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ No files ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Files in 55b40c5 ══════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ No files ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ commit 55b40c502e1306dd52ba7ed077bcfe3baf80042d │ +└────────────────────────────┘ │ Author: Test │ +┌─ 2 Files (2) ──────────────┐ │ Date: Wed Jan 21 18:07:51 2026 -0500 │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ Initial commit │ +│ │ │ --- │ +│ │ │ file1.txt | 1 + │ +│ │ │ file2.txt | 1 + │ +│ │ │ 2 files changed, 2 insertions(+) │ +│ │ │ │ +│ │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000000..e79c5e8 │ +│ feature │ │ --- /dev/null │ +│ * main │ │ +++ b/file1.txt │ +│ │ │ @@ -0,0 +1 @@ │ +│ │ │ +initial │ +│ │ │ diff --git a/file2.txt b/file2.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..e79c5e8 │ +│ │ │ --- /dev/null │ +└────────────────────────────┘ │ +++ b/file2.txt │ +╔═ 4 Commits [C] R ══════════╗ │ @@ -0,0 +1 @@ │ +║ 55b40c5 Initial commit ║ │ +initial │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:files p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ commit 55b40c502e1306dd52ba7ed077bcfe3baf80042d │ +└────────────────────────────┘ │ Author: Test │ +┌─ 2 Files (2) ──────────────┐ │ Date: Wed Jan 21 18:07:51 2026 -0500 │ +│ M file1.txt │ │ │ +│ M file2.txt │ │ Initial commit │ +│ │ │ --- │ +│ │ │ file1.txt | 1 + │ +│ │ │ file2.txt | 1 + │ +│ │ │ 2 files changed, 2 insertions(+) │ +│ │ │ │ +│ │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000000..e79c5e8 │ +│ feature │ │ --- /dev/null │ +│ * main │ │ +++ b/file1.txt │ +│ │ │ @@ -0,0 +1 @@ │ +│ │ │ +initial │ +│ │ │ diff --git a/file2.txt b/file2.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..e79c5e8 │ +│ │ │ --- /dev/null │ +└────────────────────────────┘ │ +++ b/file2.txt │ +╔═ 4 Commits [C] R ══════════╗ │ @@ -0,0 +1 @@ │ +║ 55b40c5 Initial commit ║ │ +initial │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 My stash entry │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +└────────────────────────────┘ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout enter:files p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index e79c5e8..512b97f 100644 │ +┌─ 2 Files (2) ──────────────┐ │ --- a/file1.txt │ +│ M file1.txt │ │ +++ b/file1.txt │ +│ M file2.txt │ │ @@ -1 +1,2 @@ │ +│ │ │ initial │ +│ │ │ +stash me │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 5 Stash (1) ══════════════╗ │ │ +║ 0 My stash entry ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +╚════════════════════════════╝ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:apply enter:files g:pop d:drop p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index e79c5e8..512b97f 100644 │ +┌─ 2 Files (2) ──────────────┐ │ --- a/file1.txt │ +│ M file1.txt │ │ +++ b/file1.txt │ +│ M file2.txt │ │ @@ -1 +1,2 @@ │ +│ │ │ initial │ +│ │ │ +stash me │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 5 Stash (1) ══════════════╗ │ │ +║ 0 My stash entry ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +╚════════════════════════════╝ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:apply enter:files g:pop d:drop p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index e79c5e8..512b97f 100644 │ +┌─ 2 Files (2) ──────────────┐ │ --- a/file1.txt │ +│ M file1.txt │ │ +++ b/file1.txt │ +│ M file2.txt │ │ @@ -1 +1,2 @@ │ +│ │ │ initial │ +│ │ │ +stash me │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 5 Stash (1) ══════════════╗ │ │ +║ 0 My stash entry ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +╚════════════════════════════╝ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:apply enter:files g:pop d:drop p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +╔═ Files in stash@{0} ════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ M file1.txt ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Files in stash@{0} ════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ M file1.txt ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Files in stash@{0} ════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ M file1.txt ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +╔═ Files in stash@{0} ════════════════════════════════════════════════════════════════════════════════════════════════════════════╗ +║ M file1.txt ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index e79c5e8..512b97f 100644 │ +┌─ 2 Files (2) ──────────────┐ │ --- a/file1.txt │ +│ M file1.txt │ │ +++ b/file1.txt │ +│ M file2.txt │ │ @@ -1 +1,2 @@ │ +│ │ │ initial │ +│ │ │ +stash me │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 5 Stash (1) ══════════════╗ │ │ +║ 0 My stash entry ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +╚════════════════════════════╝ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:apply enter:files g:pop d:drop p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → 55b40c5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index e79c5e8..512b97f 100644 │ +┌─ 2 Files (2) ──────────────┐ │ --- a/file1.txt │ +│ M file1.txt │ │ +++ b/file1.txt │ +│ M file2.txt │ │ @@ -1 +1,2 @@ │ +│ │ │ initial │ +│ │ │ +stash me │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 55b40c5 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 5 Stash (1) ══════════════╗ │ │ +║ 0 My stash entry ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +╚════════════════════════════╝ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────┐ + │ │ + │ │ + └──────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:apply enter:files g:pop d:drop p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygitclj-keys-test && mkdir -p /tmp/lazygitclj-keys-test && cd /tmp/lazygitclj-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygitclj-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 55b40c5] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature 850eddf] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> bb --config /home/ajet/repos/lazygitclj/bb.edn start +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/keys-navigation.gif b/test/e2e/output/keys-navigation.gif new file mode 100644 index 0000000..d2d1911 Binary files /dev/null and b/test/e2e/output/keys-navigation.gif differ diff --git a/test/e2e/output/lazygit-branches-enter.png b/test/e2e/output/lazygit-branches-enter.png new file mode 100644 index 0000000..5e99fc1 Binary files /dev/null and b/test/e2e/output/lazygit-branches-enter.png differ diff --git a/test/e2e/output/lazygit-branches-esc.png b/test/e2e/output/lazygit-branches-esc.png new file mode 100644 index 0000000..2557175 Binary files /dev/null and b/test/e2e/output/lazygit-branches-esc.png differ diff --git a/test/e2e/output/lazygit-branches-panel.png b/test/e2e/output/lazygit-branches-panel.png new file mode 100644 index 0000000..5f1361e Binary files /dev/null and b/test/e2e/output/lazygit-branches-panel.png differ diff --git a/test/e2e/output/lazygit-branches-space.png b/test/e2e/output/lazygit-branches-space.png new file mode 100644 index 0000000..d08a02f Binary files /dev/null and b/test/e2e/output/lazygit-branches-space.png differ diff --git a/test/e2e/output/lazygit-commits-enter.png b/test/e2e/output/lazygit-commits-enter.png new file mode 100644 index 0000000..0f94617 Binary files /dev/null and b/test/e2e/output/lazygit-commits-enter.png differ diff --git a/test/e2e/output/lazygit-commits-esc.png b/test/e2e/output/lazygit-commits-esc.png new file mode 100644 index 0000000..a265b03 Binary files /dev/null and b/test/e2e/output/lazygit-commits-esc.png differ diff --git a/test/e2e/output/lazygit-commits-panel.png b/test/e2e/output/lazygit-commits-panel.png new file mode 100644 index 0000000..3398fe8 Binary files /dev/null and b/test/e2e/output/lazygit-commits-panel.png differ diff --git a/test/e2e/output/lazygit-commits-space.png b/test/e2e/output/lazygit-commits-space.png new file mode 100644 index 0000000..4e9911c Binary files /dev/null and b/test/e2e/output/lazygit-commits-space.png differ diff --git a/test/e2e/output/lazygit-files-enter.png b/test/e2e/output/lazygit-files-enter.png new file mode 100644 index 0000000..eb7b9c1 Binary files /dev/null and b/test/e2e/output/lazygit-files-enter.png differ diff --git a/test/e2e/output/lazygit-files-esc.png b/test/e2e/output/lazygit-files-esc.png new file mode 100644 index 0000000..e3f8d31 Binary files /dev/null and b/test/e2e/output/lazygit-files-esc.png differ diff --git a/test/e2e/output/lazygit-files-panel.png b/test/e2e/output/lazygit-files-panel.png new file mode 100644 index 0000000..ffd1fdc Binary files /dev/null and b/test/e2e/output/lazygit-files-panel.png differ diff --git a/test/e2e/output/lazygit-files-space.png b/test/e2e/output/lazygit-files-space.png new file mode 100644 index 0000000..85fdafc Binary files /dev/null and b/test/e2e/output/lazygit-files-space.png differ diff --git a/test/e2e/output/lazygit-keys-investigation.ascii b/test/e2e/output/lazygit-keys-investigation.ascii new file mode 100644 index 0000000..4b15af9 --- /dev/null +++ b/test/e2e/output/lazygit-keys-investigation.ascii @@ -0,0 +1,4222 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> lazygit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Unstaged changes────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 3─╯│ │ +╭─[3]─Local branches - Remotes - Tags──────╮╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ * main │╭─Staged changes──────────────────────────────────────────────────────────────────────╮ +│10s feature ││diff --git a/file2.txt b/file2.txt ▐ +│ ││index e79c5e8..e5f18d7 100644 ▐ +│ ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Unstaged changes────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 3─╯│ │ +╭─[3]─Local branches - Remotes - Tags──────╮╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ * main │╭─Staged changes──────────────────────────────────────────────────────────────────────╮ +│10s feature ││diff --git a/file2.txt b/file2.txt ▐ +│ ││index e79c5e8..e5f18d7 100644 ▐ +│ ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Unstaged changes────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 3─╯│ │ +╭─[3]─Local branches - Remotes - Tags──────╮╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ * main │╭─Staged changes──────────────────────────────────────────────────────────────────────╮ +│10s feature ││diff --git a/file2.txt b/file2.txt ▐ +│ ││index e79c5e8..e5f18d7 100644 ▐ +│ ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Unstaged changes────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 3─╯│ │ +╭─[3]─Local branches - Remotes - Tags──────╮╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ * main │╭─Staged changes──────────────────────────────────────────────────────────────────────╮ +│10s feature ││diff --git a/file2.txt b/file2.txt ▐ +│ ││index e79c5e8..e5f18d7 100644 ▐ +│ ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Unstaged changes────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 3─╯│ │ +╭─[3]─Local branches - Remotes - Tags──────╮╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ * main │╭─Staged changes──────────────────────────────────────────────────────────────────────╮ +│10s feature ││diff --git a/file2.txt b/file2.txt ▐ +│ ││index e79c5e8..e5f18d7 100644 ▐ +│ ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Unstaged changes────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Edit: e | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Unstaged changes────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Edit: e | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Staged changes──────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Edit: e | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Staged changes──────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Edit: e | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Staged changes──────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││diff --git a/file1.txt b/file1.txt ▐ +╰──────────────────────────────────────────╯│index e79c5e8..40e29ef 100644 ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│--- a/file1.txt ▐ +│▼ / ││+++ b/file1.txt ▐ +│ M file1.txt ││@@ -1 +1,2 @@ ▐ +│ M file2.txt ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Stage: | Commit: c | Edit: e | Stash: s | Discard: d | Reset: D | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─Unstaged changes────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││ │ +╰──────────────────────────────────────────╯│ │ +╭─[2]─Files - Worktrees - Submodules───────╮│ │ +│▼ / ││ │ +│ M file1.txt ││ │ +│ M file2.txt ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────2 of 3─╯│ │ +╭─[3]─Local branches - Re╭───────────────────────────────────────────────────────────────────────────────╮────────────────────────╯ +│ * main │Hunk selection mode is now the default for staging. If you want to stage │────────────────────────╮ +│10s feature │individual lines, press 'a' to switch to line-by-line mode. │ ▐ +│ │ │ ▐ +│ │If you prefer to use line-by-line mode by default (like in earlier lazygit │ ▐ +│ │versions), add │ ▐ +│ │ │ ▐ +│ │gui: │ ▐ +│ │ useHunkModeInStagingView: false │ ▐ +│ │ │ ▐ +│ │to your lazygit config. │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─Unstaged changes────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││ │ +╰──────────────────────────────────────────╯│ │ +╭─[2]─Files - Worktrees - Submodules───────╮│ │ +│▼ / ││ │ +│ M file1.txt ││ │ +│ M file2.txt ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────2 of 3─╯│ │ +╭─[3]─Local branches - Re╭───────────────────────────────────────────────────────────────────────────────╮────────────────────────╯ +│ * main │Hunk selection mode is now the default for staging. If you want to stage │────────────────────────╮ +│10s feature │individual lines, press 'a' to switch to line-by-line mode. │ ▐ +│ │ │ ▐ +│ │If you prefer to use line-by-line mode by default (like in earlier lazygit │ ▐ +│ │versions), add │ ▐ +│ │ │ ▐ +│ │gui: │ ▐ +│ │ useHunkModeInStagingView: false │ ▐ +│ │ │ ▐ +│ │to your lazygit config. │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─Unstaged changes────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││ │ +╰──────────────────────────────────────────╯│ │ +╭─[2]─Files - Worktrees - Submodules───────╮│ │ +│▼ / ││ │ +│ M file1.txt ││ │ +│ M file2.txt ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────2 of 3─╯│ │ +╭─[3]─Local branches - Re╭───────────────────────────────────────────────────────────────────────────────╮────────────────────────╯ +│ * main │Hunk selection mode is now the default for staging. If you want to stage │────────────────────────╮ +│10s feature │individual lines, press 'a' to switch to line-by-line mode. │ ▐ +│ │ │ ▐ +│ │If you prefer to use line-by-line mode by default (like in earlier lazygit │ ▐ +│ │versions), add │ ▐ +│ │ │ ▐ +│ │gui: │ ▐ +│ │ useHunkModeInStagingView: false │ ▐ +│ │ │ ▐ +│ │to your lazygit config. │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─Unstaged changes────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││ │ +╰──────────────────────────────────────────╯│ │ +╭─[2]─Files - Worktrees - Submodules───────╮│ │ +│▼ / ││ │ +│ M file1.txt ││ │ +│ M file2.txt ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────2 of 3─╯│ │ +╭─[3]─Local branches - Re╭───────────────────────────────────────────────────────────────────────────────╮────────────────────────╯ +│ * main │Hunk selection mode is now the default for staging. If you want to stage │────────────────────────╮ +│10s feature │individual lines, press 'a' to switch to line-by-line mode. │ ▐ +│ │ │ ▐ +│ │If you prefer to use line-by-line mode by default (like in earlier lazygit │ ▐ +│ │versions), add │ ▐ +│ │ │ ▐ +│ │gui: │ ▐ +│ │ useHunkModeInStagingView: false │ ▐ +│ │ │ ▐ +│ │to your lazygit config. │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─Unstaged changes────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││ │ +╰──────────────────────────────────────────╯│ │ +╭─[2]─Files - Worktrees - Submodules───────╮│ │ +│▼ / ││ │ +│ M file1.txt ││ │ +│ M file2.txt ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────2 of 3─╯│ │ +╭─[3]─Local branches - Remotes - Tags──────╮╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ * main │╭─Staged changes──────────────────────────────────────────────────────────────────────╮ +│10s feature ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1,1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Select line-by-line: a | Stage: | Discard: d | Return to files panel: | … Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─Unstaged changes────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││ │ +╰──────────────────────────────────────────╯│ │ +╭─[2]─Files - Worktrees - Submodules───────╮│ │ +│▼ / ││ │ +│ M file1.txt ││ │ +│ M file2.txt ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────2 of 3─╯│ │ +╭─[3]─Local branches - Remotes - Tags──────╮╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ * main │╭─Staged changes──────────────────────────────────────────────────────────────────────╮ +│10s feature ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1,1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+unstaged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Select line-by-line: a | Stage: | Discard: d | Return to files panel: | … Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit 3dafa1c (HEAD -> main) ▐ +╰──────────────────────────────────────────╯│ Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│ Date: 24 seconds ago ▐ +│▼ / ││ ▐ +│ M file1.txt ││ Initial commit ▐ +│ M file2.txt ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Reset: g | Upstream: u | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit 3dafa1c (HEAD -> main) ▐ +╰──────────────────────────────────────────╯│ Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│ Date: 24 seconds ago ▐ +│▼ / ││ ▐ +│ M file1.txt ││ Initial commit ▐ +│ M file2.txt ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Reset: g | Upstream: u | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit 3dafa1c (HEAD -> main) ▐ +╰──────────────────────────────────────────╯│ Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│ Date: 24 seconds ago ▐ +│▼ / ││ ▐ +│ M file1.txt ││ Initial commit ▐ +│ M file2.txt ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 2─╯│ ▐ +╭─[4]─Commits - Reflog─────────────────────╮│ ▐ +│3dafa1cf Te ◯ Initial commit ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Reset: g | Upstream: u | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Merge: M | Reset: g | Upstream: u | … Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│ │ +╭─[5]─Stash────────────────────────────────╮│ │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Merge: M | Reset: g | Upstream: u | … Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → main ││* commit f50c712 (feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktrees - Submodules───────╮│| Date: 18 seconds ago ▐ +│▼ / ││| ▐ +│ M file1.txt ││| Feature work ▐ +│ M file2.txt ││| ▐ +│ ││* commit 3dafa1c (HEAD -> main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 25 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────2 of 3─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * main ││ ▐ +│10s feature ││ ▐ +│ ││ ▐ +│ ╭─Autostash?────────────────────────────────────────────────────────────────────╮ ▐ +│ │You must stash and pop your changes to bring them across. Do this │ ▐ +│ │automatically? (enter/esc) │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────2 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││You can hide/focus this panel by pressing '@' │ +│ ││ │ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt │ +╰───────────────────────────────────1 of 1─╯│Checkout branch │ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature │ +│6s On main: My stash entry ││ │ +╰───────────────────────────────────1 of 1─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 22 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 29 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +╰────────────────────────│Auto-merging file1.txt │ ▐ +╭─[3]─Local branches - Re│CONFLICT (content): Merge conflict in file1.txt │ ▐ +│ * feature │On branch feature │ ▐ +│29s main │Changes to be committed: │ ▐ +│ │ (use "git restore --staged ..." to unstage) │ ▐ +│ │ modified: file2.txt │ ▐ +│ │ │ ▐ +│ │Unmerged paths: │ ▐ +│ │ (use "git restore --staged ..." to unstage) │ ▐ +│ │ (use "git add ..." to mark resolution) │ ▐ +│ │ both modified: file1.txt │ ▐ +│ │ │ ▐ +│ │The stash entry is kept in case you need it again. │ │ +╰────────────────────────╰───────────────────────────────────────────────────────────────────────────────╯ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 22 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 29 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +╰────────────────────────│Auto-merging file1.txt │ ▐ +╭─[3]─Local branches - Re│CONFLICT (content): Merge conflict in file1.txt │ ▐ +│ * feature │On branch feature │ ▐ +│29s main │Changes to be committed: │ ▐ +│ │ (use "git restore --staged ..." to unstage) │ ▐ +│ │ modified: file2.txt │ ▐ +│ │ │ ▐ +│ │Unmerged paths: │ ▐ +│ │ (use "git restore --staged ..." to unstage) │ ▐ +│ │ (use "git add ..." to mark resolution) │ ▐ +│ │ both modified: file1.txt │ ▐ +│ │ │ ▐ +│ │The stash entry is kept in case you need it again. │ │ +╰────────────────────────╰───────────────────────────────────────────────────────────────────────────────╯ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 22 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 29 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +╰────────────────────────│Auto-merging file1.txt │ ▐ +╭─[3]─Local branches - Re│CONFLICT (content): Merge conflict in file1.txt │ ▐ +│ * feature │On branch feature │ ▐ +│29s main │Changes to be committed: │ ▐ +│ │ (use "git restore --staged ..." to unstage) │ ▐ +│ │ modified: file2.txt │ ▐ +│ │ │ ▐ +│ │Unmerged paths: │ ▐ +│ │ (use "git restore --staged ..." to unstage) │ ▐ +│ │ (use "git add ..." to mark resolution) │ ▐ +│ │ both modified: file1.txt │ ▐ +│ │ │ ▐ +│ │The stash entry is kept in case you need it again. │ │ +╰────────────────────────╰───────────────────────────────────────────────────────────────────────────────╯ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 22 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 29 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +╰────────────────────────│Auto-merging file1.txt │ ▐ +╭─[3]─Local branches - Re│CONFLICT (content): Merge conflict in file1.txt │ ▐ +│ * feature │On branch feature │ ▐ +│29s main │Changes to be committed: │ ▐ +│ │ (use "git restore --staged ..." to unstage) │ ▐ +│ │ modified: file2.txt │ ▐ +│ │ │ ▐ +│ │Unmerged paths: │ ▐ +│ │ (use "git restore --staged ..." to unstage) │ ▐ +│ │ (use "git add ..." to mark resolution) │ ▐ +│ │ both modified: file1.txt │ ▐ +│ │ │ ▐ +│ │The stash entry is kept in case you need it again. │ │ +╰────────────────────────╰───────────────────────────────────────────────────────────────────────────────╯ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 23 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 30 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 1─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│29s main ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Reset: g | Upstream: u | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 23 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 30 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 1─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│29s main ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Reset: g | Upstream: u | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Patch───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││commit f50c712e23900355c4051a2e91145637fa0dcb9c (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│Date: Wed Jan 21 17:59:42 2026 -0500 ▐ +│UU file1.txt ││ ▐ +│ ││ Feature work ▐ +│ ││--- ▐ +│ ││ file1.txt | 1 + ▐ +│ ││ 1 file changed, 1 insertion(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..6103cde 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+feature ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│29s main ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Squash: s | Fixup: f | Reword: r | Drop: d | Edit: e | Amend: A | Checkout: | Reset: g | … Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Patch───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││commit f50c712e23900355c4051a2e91145637fa0dcb9c (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│Date: Wed Jan 21 17:59:42 2026 -0500 ▐ +│UU file1.txt ││ ▐ +│ ││ Feature work ▐ +│ ││--- ▐ +│ ││ file1.txt | 1 + ▐ +│ ││ 1 file changed, 1 insertion(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..6103cde 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+feature ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│29s main ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Squash: s | Fixup: f | Reword: r | Drop: d | Edit: e | Amend: A | Checkout: | Reset: g | … Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Patch───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││commit f50c712e23900355c4051a2e91145637fa0dcb9c (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│Date: Wed Jan 21 17:59:42 2026 -0500 ▐ +│UU file1.txt ││ ▐ +│ ││ Feature work ▐ +│ ││--- ▐ +│ ││ file1.txt | 1 + ▐ +│ ││ 1 file changed, 1 insertion(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..6103cde 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+feature ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│29s main ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Squash: s | Fixup: f | Reword: r | Drop: d | Edit: e | Amend: A | Checkout: | Reset: g | … Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Patch───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││commit f50c712e23900355c4051a2e91145637fa0dcb9c (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│Date: Wed Jan 21 17:59:42 2026 -0500 ▐ +│UU file1.txt ││ ▐ +│ ││ Feature work ▐ +│ ││--- ▐ +│ ││ file1.txt | 1 + ▐ +│ ││ 1 file changed, 1 insertion(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..6103cde 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+feature ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│29s main ╭─Checkout branch or commit─────────────────────────────────────────────────────╮ ▐ +│ │d Checkout commit f50c712e as detached head │ ▐ +│ │1 Checkout branch │ ▐ +│ │ Cancel │ ▐ +│ ╰────────────────────────────────────────────────────────────────────────1 of 3─╯ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Execute: | Close/Cancel: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Patch───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││commit f50c712e23900355c4051a2e91145637fa0dcb9c (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│Date: Wed Jan 21 17:59:42 2026 -0500 ▐ +│UU file1.txt ││ ▐ +│ ││ Feature work ▐ +│ ││--- ▐ +│ ││ file1.txt | 1 + ▐ +│ ││ 1 file changed, 1 insertion(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..6103cde 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+feature ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│29s main ╭─Checkout branch or commit─────────────────────────────────────────────────────╮ ▐ +│ │d Checkout commit f50c712e as detached head │ ▐ +│ │1 Checkout branch │ ▐ +│ │ Cancel │ ▐ +│ ╰────────────────────────────────────────────────────────────────────────1 of 3─╯ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Execute: | Close/Cancel: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Patch───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││commit f50c712e23900355c4051a2e91145637fa0dcb9c (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│Date: Wed Jan 21 17:59:42 2026 -0500 ▐ +│UU file1.txt ││ ▐ +│ ││ Feature work ▐ +│ ││--- ▐ +│ ││ file1.txt | 1 + ▐ +│ ││ 1 file changed, 1 insertion(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..6103cde 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+feature ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│29s main ╭─Checkout branch or commit─────────────────────────────────────────────────────╮ ▐ +│ │d Checkout commit f50c712e as detached head │ ▐ +│ │1 Checkout branch │ ▐ +│ │ Cancel │ ▐ +│ ╰────────────────────────────────────────────────────────────────────────1 of 3─╯ ▐ +│ ││ ▐ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││Random tip: You can page through the items of a panel using ',' and '.' │ +│ ││Stage file │ +│ ││ git add -- file1.txt ▐ +│ ││Checkout branch ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash push -m "Auto-stashing changes for checking out feature" ▐ +╭─[5]─Stash────────────────────────────────╮│ git checkout feature ▐ +│0s On main: Auto-stashing changes for che││ git stash pop refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Execute: | Close/Cancel: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 26 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 33 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 1─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│33s main ││ ▐ +│ ││ ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +│ │error: you need to resolve your current index first │ ▐ +│ │file1.txt: needs merge │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││ git add -- file1.txt │ +│ ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash pop refs/stash@{0} ▐ +╭─[5]─Stash────────────────────────────────╮│Checkout commit ▐ +│4s On main: Auto-stashing changes for che││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 26 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 33 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 1─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│33s main ││ ▐ +│ ││ ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +│ │error: you need to resolve your current index first │ ▐ +│ │file1.txt: needs merge │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││ git add -- file1.txt │ +│ ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash pop refs/stash@{0} ▐ +╭─[5]─Stash────────────────────────────────╮│Checkout commit ▐ +│4s On main: Auto-stashing changes for che││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 26 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 33 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 1─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│33s main ││ ▐ +│ ││ ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +│ │error: you need to resolve your current index first │ ▐ +│ │file1.txt: needs merge │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││ git add -- file1.txt │ +│ ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash pop refs/stash@{0} ▐ +╭─[5]─Stash────────────────────────────────╮│Checkout commit ▐ +│4s On main: Auto-stashing changes for che││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 26 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 33 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 1─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│33s main ││ ▐ +│ ││ ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +│ │error: you need to resolve your current index first │ ▐ +│ │file1.txt: needs merge │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││ git add -- file1.txt │ +│ ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash pop refs/stash@{0} ▐ +╭─[5]─Stash────────────────────────────────╮│Checkout commit ▐ +│4s On main: Auto-stashing changes for che││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 27 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 34 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 1─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│33s main ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││ git add -- file1.txt │ +│ ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash pop refs/stash@{0} ▐ +╭─[5]─Stash────────────────────────────────╮│Checkout commit ▐ +│4s On main: Auto-stashing changes for che││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Reset: g | Upstream: u | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Log─────────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││* commit f50c712 (HEAD -> feature) ▐ +╰──────────────────────────────────────────╯│| Author: Test ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│| Date: 27 seconds ago ▐ +│UU file1.txt ││| ▐ +│ ││| Feature work ▐ +│ ││| ▐ +│ ││* commit 3dafa1c (main) ▐ +│ ││ Author: Test ▐ +│ ││ Date: 34 seconds ago ▐ +│ ││ ▐ +│ ││ Initial commit ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +╰───────────────────────────────────1 of 1─╯│ ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│ ▐ +│ * feature ││ ▐ +│33s main ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ │╰─────────────────────────────────────────────────────────────────────────────────────╯ +│ │╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│ ││ git add -- file1.txt │ +│ ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +╰───────────────────────────────────1 of 2─╯│ git stash pop refs/stash@{0} ▐ +╭─[5]─Stash────────────────────────────────╮│Checkout commit ▐ +│4s On main: Auto-stashing changes for che││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Checkout: | New branch: n | Delete: d | Rebase: r | Reset: g | Upstream: u | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│33s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│4s On main: Auto-stashing changes for che││ git add -- file1.txt │ +│22s On main: My stash entry ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Apply: | Pop: g | Drop: d | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│33s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│4s On main: Auto-stashing changes for che││ git add -- file1.txt │ +│22s On main: My stash entry ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Apply: | Pop: g | Drop: d | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│33s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│4s On main: Auto-stashing changes for che││ git add -- file1.txt │ +│22s On main: My stash entry ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Apply: | Pop: g | Drop: d | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│33s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ╭─Stash apply───────────────────────────────────────────────────────────────────╮ ▐ +│ │Are you sure you want to apply this stash entry? │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│4s On main: Auto-stashing changes for che││ git add -- file1.txt │ +│22s On main: My stash entry ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│33s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ╭─Stash apply───────────────────────────────────────────────────────────────────╮ ▐ +│ │Are you sure you want to apply this stash entry? │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│4s On main: Auto-stashing changes for che││ git add -- file1.txt │ +│22s On main: My stash entry ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│33s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ╭─Stash apply───────────────────────────────────────────────────────────────────╮ ▐ +│ │Are you sure you want to apply this stash entry? │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│4s On main: Auto-stashing changes for che││ git add -- file1.txt │ +│22s On main: My stash entry ││Checkout branch │ +│ ││ git checkout feature │ +│ ││ git stash push -m "Auto-stashing changes for checking out feature" ▐ +│ ││ git checkout feature ▐ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│37s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +│ │file1.txt: needs merge │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│8s On main: Auto-stashing changes for che││ git checkout feature │ +│26s On main: My stash entry ││ git stash push -m "Auto-stashing changes for checking out feature" │ +│ ││ git checkout feature │ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +│ ││Apply stash ▐ +│ ││ git stash apply refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│37s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +│ │file1.txt: needs merge │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│8s On main: Auto-stashing changes for che││ git checkout feature │ +│26s On main: My stash entry ││ git stash push -m "Auto-stashing changes for checking out feature" │ +│ ││ git checkout feature │ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +│ ││Apply stash ▐ +│ ││ git stash apply refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│37s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +│ │file1.txt: needs merge │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│8s On main: Auto-stashing changes for che││ git checkout feature │ +│26s On main: My stash entry ││ git stash push -m "Auto-stashing changes for checking out feature" │ +│ ││ git checkout feature │ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +│ ││Apply stash ▐ +│ ││ git stash apply refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│37s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ╭─Error─────────────────────────────────────────────────────────────────────────╮ ▐ +│ │file1.txt: needs merge │ ▐ +│ ╰───────────────────────────────────────────────────────────────────────────────╯ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│8s On main: Auto-stashing changes for che││ git checkout feature │ +│26s On main: My stash entry ││ git stash push -m "Auto-stashing changes for checking out feature" │ +│ ││ git checkout feature │ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +│ ││Apply stash ▐ +│ ││ git stash apply refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Confirm: | Close/Cancel: | Copy to clipboard: Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│37s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│8s On main: Auto-stashing changes for che││ git checkout feature │ +│26s On main: My stash entry ││ git stash push -m "Auto-stashing changes for checking out feature" │ +│ ││ git checkout feature │ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +│ ││Apply stash ▐ +│ ││ git stash apply refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Apply: | Pop: g | Drop: d | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +╭─[1]─Status───────────────────────────────╮╭─[0]─Stash───────────────────────────────────────────────────────────────────────────╮ +│lazygit-keys-test → feature ││stash@{0}: On main: Auto-stashing changes for checking out feature ▐ +╰──────────────────────────────────────────╯│ ▐ +╭─[2]─Files - Worktr(only conflicting)─────╮│ file1.txt | 1 + ▐ +│UU file1.txt ││ file2.txt | 1 + ▐ +│ ││ 2 files changed, 2 insertions(+) ▐ +│ ││ ▐ +│ ││diff --git a/file1.txt b/file1.txt ▐ +│ ││index e79c5e8..40e29ef 100644 ▐ +│ ││--- a/file1.txt ▐ +│ ││+++ b/file1.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +╰───────────────────────────────────1 of 1─╯│+unstaged change ▐ +╭─[3]─Local branches - Remotes - Tags──────╮│diff --git a/file2.txt b/file2.txt ▐ +│ * feature ││index e79c5e8..e5f18d7 100644 ▐ +│37s main ││--- a/file2.txt ▐ +│ ││+++ b/file2.txt ▐ +│ ││@@ -1 +1,2 @@ ▐ +│ ││ initial ▐ +│ ││+staged change ▐ +│ ││ ▐ +│ ││ ▐ +│ ││ │ +╰───────────────────────────────────1 of 2─╯│ │ +╭─[4]─Commits - Reflog─────────────────────╮│ │ +│f50c712e Te ◯ Feature work ││ │ +│3dafa1cf Te ◯ Initial commit ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +╭─[5]─Stash────────────────────────────────╮╭─Command log─────────────────────────────────────────────────────────────────────────╮ +│8s On main: Auto-stashing changes for che││ git checkout feature │ +│26s On main: My stash entry ││ git stash push -m "Auto-stashing changes for checking out feature" │ +│ ││ git checkout feature │ +│ ││ git stash pop refs/stash@{0} ▐ +│ ││Checkout commit ▐ +│ ││ git checkout f50c712e23900355c4051a2e91145637fa0dcb9c ▐ +│ ││Apply stash ▐ +│ ││ git stash apply refs/stash@{0} ▐ +╰───────────────────────────────────1 of 2─╯╰─────────────────────────────────────────────────────────────────────────────────────╯ +Apply: | Pop: g | Drop: d | Keybindings: ? Donate Ask Question 0.58.1 +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> lazygit +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> rm -rf /tmp/lazygit-keys-test && mkdir -p /tmp/lazygit-keys-test && cd /tmp/lazygit-keys-test +> git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' +Initialized empty Git repository in /tmp/lazygit-keys-test/.git/ +> echo 'initial' > file1.txt && echo 'initial' > file2.txt && git add . && git commit -m 'Initial commit' +[main (root-commit) 3dafa1c] Initial commit + 2 files changed, 2 insertions(+) + create mode 100644 file1.txt + create mode 100644 file2.txt +> git checkout -b feature && echo 'feature' >> file1.txt && git add . && git commit -m 'Feature work' && git checkout main +Switched to a new branch 'feature' +[feature f50c712] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +> echo 'stash me' >> file1.txt && git stash push -m 'My stash entry' +Saved working directory and index state On main: My stash entry +> echo 'unstaged change' >> file1.txt && echo 'staged change' >> file2.txt && git add file2.txt +> lazygit +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/lazygit-keys-investigation.gif b/test/e2e/output/lazygit-keys-investigation.gif new file mode 100644 index 0000000..046a2b5 Binary files /dev/null and b/test/e2e/output/lazygit-keys-investigation.gif differ diff --git a/test/e2e/output/lazygit-stash-enter.png b/test/e2e/output/lazygit-stash-enter.png new file mode 100644 index 0000000..927a578 Binary files /dev/null and b/test/e2e/output/lazygit-stash-enter.png differ diff --git a/test/e2e/output/lazygit-stash-esc.png b/test/e2e/output/lazygit-stash-esc.png new file mode 100644 index 0000000..cd224c1 Binary files /dev/null and b/test/e2e/output/lazygit-stash-esc.png differ diff --git a/test/e2e/output/lazygit-stash-panel.png b/test/e2e/output/lazygit-stash-panel.png new file mode 100644 index 0000000..9694986 Binary files /dev/null and b/test/e2e/output/lazygit-stash-panel.png differ diff --git a/test/e2e/output/lazygit-stash-space.png b/test/e2e/output/lazygit-stash-space.png new file mode 100644 index 0000000..11b3895 Binary files /dev/null and b/test/e2e/output/lazygit-stash-space.png differ diff --git a/test/e2e/output/lazygitclj-branches-enter.png b/test/e2e/output/lazygitclj-branches-enter.png new file mode 100644 index 0000000..1d24e3d Binary files /dev/null and b/test/e2e/output/lazygitclj-branches-enter.png differ diff --git a/test/e2e/output/lazygitclj-branches-esc.png b/test/e2e/output/lazygitclj-branches-esc.png new file mode 100644 index 0000000..95eec72 Binary files /dev/null and b/test/e2e/output/lazygitclj-branches-esc.png differ diff --git a/test/e2e/output/lazygitclj-branches-panel.png b/test/e2e/output/lazygitclj-branches-panel.png new file mode 100644 index 0000000..bf23a1f Binary files /dev/null and b/test/e2e/output/lazygitclj-branches-panel.png differ diff --git a/test/e2e/output/lazygitclj-branches-space.png b/test/e2e/output/lazygitclj-branches-space.png new file mode 100644 index 0000000..1d24e3d Binary files /dev/null and b/test/e2e/output/lazygitclj-branches-space.png differ diff --git a/test/e2e/output/lazygitclj-commits-enter.png b/test/e2e/output/lazygitclj-commits-enter.png new file mode 100644 index 0000000..7863558 Binary files /dev/null and b/test/e2e/output/lazygitclj-commits-enter.png differ diff --git a/test/e2e/output/lazygitclj-commits-esc.png b/test/e2e/output/lazygitclj-commits-esc.png new file mode 100644 index 0000000..79a3886 Binary files /dev/null and b/test/e2e/output/lazygitclj-commits-esc.png differ diff --git a/test/e2e/output/lazygitclj-commits-panel.png b/test/e2e/output/lazygitclj-commits-panel.png new file mode 100644 index 0000000..e74da9f Binary files /dev/null and b/test/e2e/output/lazygitclj-commits-panel.png differ diff --git a/test/e2e/output/lazygitclj-files-enter.png b/test/e2e/output/lazygitclj-files-enter.png new file mode 100644 index 0000000..51d778a Binary files /dev/null and b/test/e2e/output/lazygitclj-files-enter.png differ diff --git a/test/e2e/output/lazygitclj-files-esc.png b/test/e2e/output/lazygitclj-files-esc.png new file mode 100644 index 0000000..b9663ff Binary files /dev/null and b/test/e2e/output/lazygitclj-files-esc.png differ diff --git a/test/e2e/output/lazygitclj-files-panel.png b/test/e2e/output/lazygitclj-files-panel.png new file mode 100644 index 0000000..c07fa70 Binary files /dev/null and b/test/e2e/output/lazygitclj-files-panel.png differ diff --git a/test/e2e/output/lazygitclj-files-space-stage.png b/test/e2e/output/lazygitclj-files-space-stage.png new file mode 100644 index 0000000..2a30c6c Binary files /dev/null and b/test/e2e/output/lazygitclj-files-space-stage.png differ diff --git a/test/e2e/output/lazygitclj-stash-enter.png b/test/e2e/output/lazygitclj-stash-enter.png new file mode 100644 index 0000000..6a6df09 Binary files /dev/null and b/test/e2e/output/lazygitclj-stash-enter.png differ diff --git a/test/e2e/output/lazygitclj-stash-esc.png b/test/e2e/output/lazygitclj-stash-esc.png new file mode 100644 index 0000000..768bcef Binary files /dev/null and b/test/e2e/output/lazygitclj-stash-esc.png differ diff --git a/test/e2e/output/lazygitclj-stash-panel.png b/test/e2e/output/lazygitclj-stash-panel.png new file mode 100644 index 0000000..79a3886 Binary files /dev/null and b/test/e2e/output/lazygitclj-stash-panel.png differ diff --git a/test/e2e/output/modal-debug-large.ascii b/test/e2e/output/modal-debug-large.ascii new file mode 100644 index 0000000..e43e198 --- /dev/null +++ b/test/e2e/output/modal-debug-large.ascii @@ -0,0 +1,943 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-modal-large && cd /tmp/lazygitclj-e2e-modal-large && bb --config /home/ajet/repos/lazyg +itclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-modal-large && cd /tmp/lazygitclj-e2e-modal-large && bb --config /home/ajet/repos/lazyg +itclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-modal-large/.git/ +[main (root-commit) c127d79] 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 c25f4cc] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal-large + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → c127d79 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ c127d79 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 → c127d79 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (3) ──────────────┐ │ │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ │ +│ ?? newfile.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature-branch ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ c127d79 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → c127d79 │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (3) ──────────────┐ │ │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ │ +│ ?? newfile.txt │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature-branch ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ c127d79 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → c127d79 │ │ commit c127d793cea490de325799ba375483edcc007e5f │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 18:04:17 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +│ │ │ file1.txt | 1 + │ +│ │ │ file2.txt | 1 + │ +│ │ │ 3 files changed, 3 insertions(+) │ +│ │ │ │ +│ │ │ diff --git a/README.md b/README.md │ +└────────────────────────────┘ │ new file mode 100644 │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000000..181e1c3 │ +│ feature-branch │ │ --- /dev/null │ +│ * main │ │ +++ b/README.md │ +│ │ │ @@ -0,0 +1 @@ │ +│ │ │ +# Test Project │ +│ │ │ diff --git a/file1.txt b/file1.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..a29bdeb │ +│ │ │ --- /dev/null │ +│ │ │ +++ b/file1.txt │ +└────────────────────────────┘ │ @@ -0,0 +1 @@ │ +╔═ 4 Commits [C] R ══════════╗ │ +line1 │ +║ c127d79 Initial commit ║ │ diff --git a/file2.txt b/file2.txt │ +║ ║ │ new file mode 100644 │ +║ ║ │ index 0000000..a29bdeb │ +║ ║ │ --- /dev/null │ +║ ║ │ +++ b/file2.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +line1 │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → c127d79 │ │ commit c127d793cea490de325799ba375483edcc007e5f │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 18:04:17 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +│ │ │ file1.txt | 1 + │ +│ │ │ file2.txt | 1 + │ +│ │ │ 3 files changed, 3 insertions(+) │ +│ │ │ │ +│ │ │ diff --git a/README.md b/README.md │ +└────────────────────────────┘ │ new file mode 100644 │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000000..181e1c3 │ +│ feature-branch │ │ --- /dev/null │ +│ * main │ │ +++ b/README.md │ +│ │ │ @@ -0,0 +1 @@ │ +│ │ │ +# Test Project │ +│ │ │ diff --git a/file1.txt b/file1.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..a29bdeb │ +│ │ │ --- /dev/null │ +│ │ │ +++ b/file1.txt │ +└────────────────────────────┘ │ @@ -0,0 +1 @@ │ +╔═ 4 Commits [C] R ══════════╗ │ +line1 │ +║ c127d79 Initial commit ║ │ diff --git a/file2.txt b/file2.txt │ +║ ║ │ new file mode 100644 │ +║ ║ │ index 0000000..a29bdeb │ +║ ║ │ --- /dev/null │ +║ ║ │ +++ b/file2.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +line1 │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → c127d79 │ │ commit c127d793cea490de325799ba375483edcc007e5f │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 18:04:17 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +│ │ │ file1.txt╔═ Help - Keybindings ══════════════════════════════╗ │ +│ │ │ file2.txt║ Global: ║ │ +│ │ │ 3 files c║ q - Quit r - Refresh ║ │ +│ │ │ ║ h/l - Prev/Next panel 2-5 - Jump to panel ║ │ +│ │ │ diff --git║ j/k - Move down/up z/Z - Undo/Redo ║ │ +└────────────────────────────┘ │ new file m║ p - Pull P - Push ║ │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000║ ? - Help D - Reset options ║ │ +│ feature-branch │ │ --- /dev/n║ ║ │ +│ * main │ │ +++ b/READ║ Files (2): ║ │ +│ │ │ @@ -0,0 +1║ space - Stage/unstage a - Stage all ║ │ +│ │ │ +# Test Pr║ c - Commit d - Discard file ║ │ +│ │ │ diff --git║ s - Quick stash S - Stash options ║ │ +│ │ │ new file m║ ║ │ +│ │ │ index 0000║ Branches (3): ║ │ +│ │ │ --- /dev/n║ [/] - Switch tabs enter - Checkout ║ │ +│ │ │ +++ b/file║ n - New branch d - Delete branch ║ │ +└────────────────────────────┘ │ @@ -0,0 +1║ R - Rename M - Merge ║ │ +╔═ 4 Commits [C] R ══════════╗ │ +line1 ║ f - Fast-forward ║ │ +║ c127d79 Initial commit ║ │ diff --git║ ║ │ +║ ║ │ new file m║ Commits (4): ║ │ +║ ║ │ index 0000║ [/] - Switch tabs space - Checkout ║ │ +║ ║ │ --- /dev/n║ g - Reset to C - Cherry-pick ║ │ +║ ║ │ +++ b/file║ t - Revert r - Reword (HEAD only) ║ │ +║ ║ │ @@ -0,0 +1║ y - Show SHA ║ │ +║ ║ │ +line1 ║ ║ │ +║ ║ │ ║ Stash (5): ║ │ +║ ║ │ ║ space - Apply g - Pop (apply+drop) ║ │ +╚════════════════════════════╝ │ ║ d - Drop n - Branch from stash ║ │ +┌─ 5 Stash (0) ──────────────┐ │ ║ ║ │ +│ No stashes │ │ ║ Press ?, q, or esc to close ║ │ +│ │ │ ╚═══════════════════════════════════════════════════╝ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → c127d79 │ │ commit c127d793cea490de325799ba375483edcc007e5f │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 18:04:17 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +│ │ │ file1.txt╔═ Help - Keybindings ══════════════════════════════╗ │ +│ │ │ file2.txt║ Global: ║ │ +│ │ │ 3 files c║ q - Quit r - Refresh ║ │ +│ │ │ ║ h/l - Prev/Next panel 2-5 - Jump to panel ║ │ +│ │ │ diff --git║ j/k - Move down/up z/Z - Undo/Redo ║ │ +└────────────────────────────┘ │ new file m║ p - Pull P - Push ║ │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000║ ? - Help D - Reset options ║ │ +│ feature-branch │ │ --- /dev/n║ ║ │ +│ * main │ │ +++ b/READ║ Files (2): ║ │ +│ │ │ @@ -0,0 +1║ space - Stage/unstage a - Stage all ║ │ +│ │ │ +# Test Pr║ c - Commit d - Discard file ║ │ +│ │ │ diff --git║ s - Quick stash S - Stash options ║ │ +│ │ │ new file m║ ║ │ +│ │ │ index 0000║ Branches (3): ║ │ +│ │ │ --- /dev/n║ [/] - Switch tabs enter - Checkout ║ │ +│ │ │ +++ b/file║ n - New branch d - Delete branch ║ │ +└────────────────────────────┘ │ @@ -0,0 +1║ R - Rename M - Merge ║ │ +╔═ 4 Commits [C] R ══════════╗ │ +line1 ║ f - Fast-forward ║ │ +║ c127d79 Initial commit ║ │ diff --git║ ║ │ +║ ║ │ new file m║ Commits (4): ║ │ +║ ║ │ index 0000║ [/] - Switch tabs space - Checkout ║ │ +║ ║ │ --- /dev/n║ g - Reset to C - Cherry-pick ║ │ +║ ║ │ +++ b/file║ t - Revert r - Reword (HEAD only) ║ │ +║ ║ │ @@ -0,0 +1║ y - Show SHA ║ │ +║ ║ │ +line1 ║ ║ │ +║ ║ │ ║ Stash (5): ║ │ +║ ║ │ ║ space - Apply g - Pop (apply+drop) ║ │ +╚════════════════════════════╝ │ ║ d - Drop n - Branch from stash ║ │ +┌─ 5 Stash (0) ──────────────┐ │ ║ ║ │ +│ No stashes │ │ ║ Press ?, q, or esc to close ║ │ +│ │ │ ╚═══════════════════════════════════════════════════╝ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → c127d79 │ │ commit c127d793cea490de325799ba375483edcc007e5f │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 18:04:17 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +│ │ │ file1.txt╔═ Help - Keybindings ══════════════════════════════╗ │ +│ │ │ file2.txt║ Global: ║ │ +│ │ │ 3 files c║ q - Quit r - Refresh ║ │ +│ │ │ ║ h/l - Prev/Next panel 2-5 - Jump to panel ║ │ +│ │ │ diff --git║ j/k - Move down/up z/Z - Undo/Redo ║ │ +└────────────────────────────┘ │ new file m║ p - Pull P - Push ║ │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000║ ? - Help D - Reset options ║ │ +│ feature-branch │ │ --- /dev/n║ ║ │ +│ * main │ │ +++ b/READ║ Files (2): ║ │ +│ │ │ @@ -0,0 +1║ space - Stage/unstage a - Stage all ║ │ +│ │ │ +# Test Pr║ c - Commit d - Discard file ║ │ +│ │ │ diff --git║ s - Quick stash S - Stash options ║ │ +│ │ │ new file m║ ║ │ +│ │ │ index 0000║ Branches (3): ║ │ +│ │ │ --- /dev/n║ [/] - Switch tabs enter - Checkout ║ │ +│ │ │ +++ b/file║ n - New branch d - Delete branch ║ │ +└────────────────────────────┘ │ @@ -0,0 +1║ R - Rename M - Merge ║ │ +╔═ 4 Commits [C] R ══════════╗ │ +line1 ║ f - Fast-forward ║ │ +║ c127d79 Initial commit ║ │ diff --git║ ║ │ +║ ║ │ new file m║ Commits (4): ║ │ +║ ║ │ index 0000║ [/] - Switch tabs space - Checkout ║ │ +║ ║ │ --- /dev/n║ g - Reset to C - Cherry-pick ║ │ +║ ║ │ +++ b/file║ t - Revert r - Reword (HEAD only) ║ │ +║ ║ │ @@ -0,0 +1║ y - Show SHA ║ │ +║ ║ │ +line1 ║ ║ │ +║ ║ │ ║ Stash (5): ║ │ +║ ║ │ ║ space - Apply g - Pop (apply+drop) ║ │ +╚════════════════════════════╝ │ ║ d - Drop n - Branch from stash ║ │ +┌─ 5 Stash (0) ──────────────┐ │ ║ ║ │ +│ No stashes │ │ ║ Press ?, q, or esc to close ║ │ +│ │ │ ╚═══════════════════════════════════════════════════╝ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────────────────────────────────────────────────┐ +│ main → c127d79 │ │ commit c127d793cea490de325799ba375483edcc007e5f │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 18:04:17 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +│ │ │ file1.txt | 1 + │ +│ │ │ file2.txt | 1 + │ +│ │ │ 3 files changed, 3 insertions(+) │ +│ │ │ │ +│ │ │ diff --git a/README.md b/README.md │ +└────────────────────────────┘ │ new file mode 100644 │ +┌─ 3 Branches [L] R T ───────┐ │ index 0000000..181e1c3 │ +│ feature-branch │ │ --- /dev/null │ +│ * main │ │ +++ b/README.md │ +│ │ │ @@ -0,0 +1 @@ │ +│ │ │ +# Test Project │ +│ │ │ diff --git a/file1.txt b/file1.txt │ +│ │ │ new file mode 100644 │ +│ │ │ index 0000000..a29bdeb │ +│ │ │ --- /dev/null │ +│ │ │ +++ b/file1.txt │ +└────────────────────────────┘ │ @@ -0,0 +1 @@ │ +╔═ 4 Commits [C] R ══════════╗ │ +line1 │ +║ c127d79 Initial commit ║ │ diff --git a/file2.txt b/file2.txt │ +║ ║ │ new file mode 100644 │ +║ ║ │ index 0000000..a29bdeb │ +║ ║ │ --- /dev/null │ +║ ║ │ +++ b/file2.txt │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +line1 │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-modal-large && cd /tmp/lazygitclj-e2e-modal-large && bb --config /home/ajet/repos/lazyg +itclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-modal-large/.git/ +[main (root-commit) c127d79] 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 c25f4cc] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal-large + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-modal-large && cd /tmp/lazygitclj-e2e-modal-large && bb --config /home/ajet/repos/lazyg +itclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-modal-large/.git/ +[main (root-commit) c127d79] 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 c25f4cc] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal-large + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/modal-debug-large.gif b/test/e2e/output/modal-debug-large.gif new file mode 100644 index 0000000..cc3cd95 Binary files /dev/null and b/test/e2e/output/modal-debug-large.gif differ diff --git a/test/e2e/output/modal-debug-narrow.ascii b/test/e2e/output/modal-debug-narrow.ascii new file mode 100644 index 0000000..2fc4ee0 --- /dev/null +++ b/test/e2e/output/modal-debug-narrow.ascii @@ -0,0 +1,696 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/la +zygitclj-e2e-modal-narrow && cd /tmp/la +zygitclj-e2e-modal-narrow && bb --confi +g /home/ajet/repos/lazygitclj/bb.edn st +art + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/la +zygitclj-e2e-modal-narrow && cd /tmp/la +zygitclj-e2e-modal-narrow && bb --confi +g /home/ajet/repos/lazygitclj/bb.edn st +art +Initialized empty Git repository in /tm +p/lazygitclj-e2e-modal-narrow/.git/ +[main (root-commit) c0156f0] Initial co +mmit + 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-branc +h' +[feature-branch 229b261] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2 +e-modal-narrow + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) + + + + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ──────────────────────────┐ +│ main → c0156f0 │ +└─────────────────────────────────────┘ +╔═ 2 Files (3) ═══════════════════════╗ +║ M file2.txt ║ +║ M file1.txt ║ +╚═════════════════════════════════════╝ +┌─ 3 Branches [L] R T ────────────────┐ +│ feature-branch │ +│ * main │ +└─────────────────────────────────────┘ +┌─ 4 Commits [C] R ───────────────────┐ +│ c0156f0 Initial commit │ +│ │ +└─────────────────────────────────────┘ +┌─ 5 Stash (0) ───────────────────────┐ +│ No stashes │ +└─────────────────────────────────────┘ +┌─ 0 Main ────────────────────────────┐ +│ diff --git a/file2.txt b/file2.txt │ +│ index a29bdeb..723650f 100644 │ +└─────────────────────────────────────┘ +┌─ Command Log ───────────────────────┐ +│ │ +│ │ +└─────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:st +age a:all c:commit p/P:pull/push + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ──────────────────────────┐ +│ main → c0156f0 │ +└─────────────────────────────────────┘ +┌─ 2 Files (3) ───────────────────────┐ +│ M file2.txt │ +│ M file1.txt │ +└─────────────────────────────────────┘ +╔═ 3 Branches [L] R T ════════════════╗ +║ feature-branch ║ +║ * main ║ +╚═════════════════════════════════════╝ +┌─ 4 Commits [C] R ───────────────────┐ +│ c0156f0 Initial commit │ +│ │ +└─────────────────────────────────────┘ +┌─ 5 Stash (0) ───────────────────────┐ +│ No stashes │ +└─────────────────────────────────────┘ +┌─ 0 Main ────────────────────────────┐ +│ │ +│ │ +└─────────────────────────────────────┘ +┌─ Command Log ───────────────────────┐ +│ │ +│ │ +└─────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tab +s n:new d:del p/P:pull/push + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ──────────────────────────┐ +│ main → c0156f0 │ +└─────────────────────────────────────┘ +┌─ 2 Files (3) ───────────────────────┐ +│ M file2.txt │ +│ M file1.txt │ +└─────────────────────────────────────┘ +╔═ 3 Branches [L] R T ════════════════╗ +║ feature-branch ║ +║ * main ║ +╚═════════════════════════════════════╝ +┌─ 4 Commits [C] R ───────────────────┐ +│ c0156f0 Initial commit │ +│ │ +└─────────────────────────────────────┘ +┌─ 5 Stash (0) ───────────────────────┐ +│ No stashes │ +└─────────────────────────────────────┘ +┌─ 0 Main ────────────────────────────┐ +│ │ +│ │ +└─────────────────────────────────────┘ +┌─ Command Log ───────────────────────┐ +│ │ +│ │ +└─────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tab +s n:new d:del p/P:pull/push + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ──────────────────────────┐ +│ main → c0156f0 │ +└─────────────────────────────────────┘ +┌─ 2 Files (3) ───────────────────────┐ +│ M file2.txt │ +│ M file1.txt │ +└─────────────────────────────────────┘ +┌─ 3 Branches [L] R T ────────────────┐ +│ feature-branch │ +│ * main │ +└─────────────────────────────────────┘ +╔═ 4 Commits [C] R ═══════════════════╗ +║ c0156f0 Initial commit ║ +║ ║ +╚═════════════════════════════════════╝ +┌─ 5 Stash (0) ───────────────────────┐ +│ No stashes │ +└─────────────────────────────────────┘ +┌─ 0 Main ────────────────────────────┐ +│ commit c0156f02c655f17932d5381166975c +5355a50ff3 │ +│ Author: Test User +│ +└─────────────────────────────────────┘ +┌─ Command Log ───────────────────────┐ +│ │ +│ │ +└─────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tab +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ──────────────────────────┐ +│ main → c0156f0 │ +└─────────────────────────────────────┘ +┌─ 2 Files (3) ───────────────────────┐ +│ M file2.txt │ +│ M file1.txt │ +└─────────────────────────────────────┘ +┌─ 3 Branches [L] R T ────────────────┐ +│ feature-branch │ +│ * main │ +└─────────────────────────────────────┘ +╔═ 4 Commits [C] R ═══════════════════╗ +║ c0156f0 Initial commit ║ +║ ║ +╚═════════════════════════════════════╝ +┌─ 5 Stash (0) ───────────────────────┐ +│ No stashes │ +└─────────────────────────────────────┘ +┌─ 0 Main ────────────────────────────┐ +│ commit c0156f02c655f17932d5381166975c +5355a50ff3 │ +│ Author: Test User +│ +└─────────────────────────────────────┘ +┌─ Command Log ───────────────────────┐ +│ │ +│ │ +└─────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tab +──────────────────────────────────────────────────────────────────────────────── +║ h/l - Prev/Next panel 2-5 - Jump + to panel ║ +║ j/k - Move down/up z/Z - Undo +/Redo ║ +║ p - Pull P - Push + ║ +║ ? - Help D - Reset +options ║ +║ + ║ +║ Files (2): + ║ +║ space - Stage/unstage a - Stage +all ║ +║ c - Commit d - Discar +d file ║ +║ s - Quick stash S - Stash +options ║ +║ + ║ +║ Branches (3): + ║ +║ [/] - Switch tabs enter - Ch +eckout ║ +║ n - New branch d - Delete + branch ║ +║ R - Rename M - Merge + ║ +║ f - Fast-forward +──────────────────────────────────────────────────────────────────────────────── +║ h/l - Prev/Next panel 2-5 - Jump + to panel ║ +║ j/k - Move down/up z/Z - Undo +/Redo ║ +║ p - Pull P - Push + ║ +║ ? - Help D - Reset +options ║ +║ + ║ +║ Files (2): + ║ +║ space - Stage/unstage a - Stage +all ║ +║ c - Commit d - Discar +d file ║ +║ s - Quick stash S - Stash +options ║ +║ + ║ +║ Branches (3): + ║ +║ [/] - Switch tabs enter - Ch +eckout ║ +║ n - New branch d - Delete + branch ║ +║ R - Rename M - Merge + ║ +║ f - Fast-forward +──────────────────────────────────────────────────────────────────────────────── +║ h/l - Prev/Next panel 2-5 - Jump + to panel ║ +║ j/k - Move down/up z/Z - Undo +/Redo ║ +║ p - Pull P - Push + ║ +║ ? - Help D - Reset +options ║ +║ + ║ +║ Files (2): + ║ +║ space - Stage/unstage a - Stage +all ║ +║ c - Commit d - Discar +d file ║ +║ s - Quick stash S - Stash +options ║ +║ + ║ +║ Branches (3): + ║ +║ [/] - Switch tabs enter - Ch +eckout ║ +║ n - New branch d - Delete + branch ║ +║ R - Rename M - Merge + ║ +║ f - Fast-forward +──────────────────────────────────────────────────────────────────────────────── + to panel ║ +║ j/k - Move down/up z/Z - Undo +/Redo ║ +║ p - Pull P - Push + ║ +║ ? - Help D - Reset +options ║ +║ + ║ +║ Files (2): + ║ +║ space - Stage/unstage a - Stage +all ║ +║ c - Commit d - Discar +d file ║ +║ s - Quick stash S - Stash +options ║ +║ + ║ +║ Branches (3): + ║ +║ [/] - Switch tabs enter - Ch +┌─ 1 Status ──────────────────────────┐ +│ main → c0156f0 │ +└─────────────────────────────────────┘ +┌─ 2 Files (3) ───────────────────────┐ +│ M file2.txt │ +│ M file1.txt │ +└─────────────────────────────────────┘ +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/la +zygitclj-e2e-modal-narrow && cd /tmp/la +zygitclj-e2e-modal-narrow && bb --confi +g /home/ajet/repos/lazygitclj/bb.edn st +art +Initialized empty Git repository in /tm +p/lazygitclj-e2e-modal-narrow/.git/ +[main (root-commit) c0156f0] Initial co +mmit + 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-branc +h' +[feature-branch 229b261] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2 +e-modal-narrow + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/la +zygitclj-e2e-modal-narrow && cd /tmp/la +zygitclj-e2e-modal-narrow && bb --confi +g /home/ajet/repos/lazygitclj/bb.edn st +art +Initialized empty Git repository in /tm +p/lazygitclj-e2e-modal-narrow/.git/ +[main (root-commit) c0156f0] Initial co +mmit + 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-branc +h' +[feature-branch 229b261] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2 +e-modal-narrow + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/modal-debug-narrow.gif b/test/e2e/output/modal-debug-narrow.gif new file mode 100644 index 0000000..0100cd8 Binary files /dev/null and b/test/e2e/output/modal-debug-narrow.gif differ diff --git a/test/e2e/output/modal-debug-small.ascii b/test/e2e/output/modal-debug-small.ascii new file mode 100644 index 0000000..8f053e8 --- /dev/null +++ b/test/e2e/output/modal-debug-small.ascii @@ -0,0 +1,527 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2 +e-modal-small && cd /tmp/lazygitclj-e2e-modal-smal +l && bb --config /home/ajet/repos/lazygitclj/bb.ed +n start + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2 +e-modal-small && cd /tmp/lazygitclj-e2e-modal-smal +l && bb --config /home/ajet/repos/lazygitclj/bb.ed +n start +Initialized empty Git repository in /tmp/lazygitcl +j-e2e-modal-small/.git/ +[main (root-commit) 5555bdd] 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 15c0d8c] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal-sma +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +│ No stashes │ +└────────────────────────────────────────────────┘ +┌─ 0 Main ───────────────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ Command Log ──────────────────────────────────┐ +│ │ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +└────────────────────────────────────────────────┘ +╔═ 3 Branches [L] R T ═══════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +│ No stashes │ +└────────────────────────────────────────────────┘ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +└────────────────────────────────────────────────┘ +╔═ 3 Branches [L] R T ═══════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +│ No stashes │ +└────────────────────────────────────────────────┘ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +╔═ 4 Commits [C] R ══════════════════════════════╗ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +╔═ 4 Commits [C] R ══════════════════════════════╗ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +╔═ Help - Keybindings ════════════════════════════ +══╗ +║ Global: + ║ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +╔═ Help - Keybindings ════════════════════════════ +══╗ +║ Global: + ║ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +╔═ Help - Keybindings ════════════════════════════ +══╗ +║ Global: + ║ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +┌─ 1 Status ─────────────────────────────────────┐ +│ main → 5555bdd │ +└────────────────────────────────────────────────┘ +┌─ 2 Files (3) ──────────────────────────────────┐ +╔═ Help - Keybindings ════════════════════════════ +══╗ +║ Global: + ║ +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2 +e-modal-small && cd /tmp/lazygitclj-e2e-modal-smal +l && bb --config /home/ajet/repos/lazygitclj/bb.ed +n start +Initialized empty Git repository in /tmp/lazygitcl +j-e2e-modal-small/.git/ +[main (root-commit) 5555bdd] 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 15c0d8c] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal-sma +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2 +e-modal-small && cd /tmp/lazygitclj-e2e-modal-smal +l && bb --config /home/ajet/repos/lazygitclj/bb.ed +n start +Initialized empty Git repository in /tmp/lazygitcl +j-e2e-modal-small/.git/ +[main (root-commit) 5555bdd] 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 15c0d8c] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal-sma +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/modal-debug-small.gif b/test/e2e/output/modal-debug-small.gif new file mode 100644 index 0000000..1071edc Binary files /dev/null and b/test/e2e/output/modal-debug-small.gif differ diff --git a/test/e2e/output/modal-debug.ascii b/test/e2e/output/modal-debug.ascii new file mode 100644 index 0000000..19154f4 --- /dev/null +++ b/test/e2e/output/modal-debug.ascii @@ -0,0 +1,696 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-modal && cd /tmp/lazygitclj-e2e-modal && bb + --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-modal && cd /tmp/lazygitclj-e2e-modal && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-modal/.git/ +[main (root-commit) 95bc2ab] 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 ffa41af] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 95bc2ab │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 95bc2ab 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 → 95bc2ab │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (3) ──────────────┐ │ │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ │ +│ ?? newfile.txt │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature-branch ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 95bc2ab Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ │ │ +│ │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +└────────────────────────────┘ │ │ + └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 95bc2ab │ │ │ +└────────────────────────────┘ │ │ +┌─ 2 Files (3) ──────────────┐ │ │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ │ +│ ?? newfile.txt │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +╔═ 3 Branches [L] R T ═══════╗ │ │ +║ feature-branch ║ │ │ +║ * main ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 95bc2ab Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (0) ──────────────┐ │ │ +│ No stashes │ │ │ +│ │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +└────────────────────────────┘ │ │ + └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs n:new d:del p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 95bc2ab │ │ commit 95bc2abf2b2afa44d77bb468eabbc44e550b85f4 │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 17:54:56 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +└────────────────────────────┘ │ file1.txt | 1 + │ +┌─ 3 Branches [L] R T ───────┐ │ file2.txt | 1 + │ +│ feature-branch │ │ 3 files changed, 3 insertions(+) │ +│ * main │ │ │ +│ │ │ diff --git a/README.md b/README.md │ +│ │ │ new file mode 100644 │ +└────────────────────────────┘ │ index 0000000..181e1c3 │ +╔═ 4 Commits [C] R ══════════╗ │ --- /dev/null │ +║ 95bc2ab Initial commit ║ │ +++ b/README.md │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +# Test Project │ +║ ║ │ diff --git a/file1.txt b/file1.txt │ +╚════════════════════════════╝ │ new file mode 100644 │ +┌─ 5 Stash (0) ──────────────┐ │ index 0000000..a29bdeb │ +│ No stashes │ │ --- /dev/null │ +│ │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +└────────────────────────────┘ │ │ + └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 95bc2ab │ │ commit 95bc2abf2b2afa44d77bb468eabbc44e550b85f4 │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 17:54:56 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +└────────────────────────────┘ │ file1.txt | 1 + │ +┌─ 3 Branches [L] R T ───────┐ │ file2.txt | 1 + │ +│ feature-branch │ │ 3 files changed, 3 insertions(+) │ +│ * main │ │ │ +│ │ │ diff --git a/README.md b/README.md │ +│ │ │ new file mode 100644 │ +└────────────────────────────┘ │ index 0000000..181e1c3 │ +╔═ 4 Commits [C] R ══════════╗ │ --- /dev/null │ +║ 95bc2ab Initial commit ║ │ +++ b/README.md │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +# Test Project │ +║ ║ │ diff --git a/file1.txt b/file1.txt │ +╚════════════════════════════╝ │ new file mode 100644 │ +┌─ 5 Stash (0) ──────────────┐ │ index 0000000..a29bdeb │ +│ No stashes │ │ --- /dev/null │ +│ │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +└────────────────────────────┘ │ │ + └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────╔═ Help - Keybindings ══════════════════════════════╗────────────────────┐ +│ main → 95bc2ab ║ Global: ║0b85f4 │ +└────────────────────║ q - Quit r - Refresh ║ │ +┌─ 2 Files (3) ──────║ h/l - Prev/Next panel 2-5 - Jump to panel ║ │ +│ M file2.txt ║ j/k - Move down/up z/Z - Undo/Redo ║ │ +│ M file1.txt ║ p - Pull P - Push ║ │ +│ ?? newfile.txt ║ ? - Help D - Reset options ║ │ +│ ║ ║ │ +└────────────────────║ Files (2): ║ │ +┌─ 3 Branches [L] R T║ space - Stage/unstage a - Stage all ║ │ +│ feature-branch ║ c - Commit d - Discard file ║ │ +│ * main ║ s - Quick stash S - Stash options ║ │ +│ ║ ║ │ +│ ║ Branches (3): ║ │ +└────────────────────║ [/] - Switch tabs enter - Checkout ║ │ +╔═ 4 Commits [C] R ══║ n - New branch d - Delete branch ║ │ +║ 95bc2ab Initial com║ R - Rename M - Merge ║ │ +║ ║ f - Fast-forward ║ │ +║ ║ ║ │ +║ ║ Commits (4): ║ │ +╚════════════════════║ [/] - Switch tabs space - Checkout ║ │ +┌─ 5 Stash (0) ──────║ g - Reset to C - Cherry-pick ║ │ +│ No stashes ║ t - Revert r - Reword (HEAD only) ║ │ +│ ║ y - Show SHA ║────────────────────┘ +│ ║ ║────────────────────┐ +│ ║ Stash (5): ║ │ +└────────────────────║ space - Apply g - Pop (apply+drop) ║ │ + ║ d - Drop n - Branch from stash ║────────────────────┘ +q:quit ?:help h/l:pan║ ║ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────╔═ Help - Keybindings ══════════════════════════════╗────────────────────┐ +│ main → 95bc2ab ║ Global: ║0b85f4 │ +└────────────────────║ q - Quit r - Refresh ║ │ +┌─ 2 Files (3) ──────║ h/l - Prev/Next panel 2-5 - Jump to panel ║ │ +│ M file2.txt ║ j/k - Move down/up z/Z - Undo/Redo ║ │ +│ M file1.txt ║ p - Pull P - Push ║ │ +│ ?? newfile.txt ║ ? - Help D - Reset options ║ │ +│ ║ ║ │ +└────────────────────║ Files (2): ║ │ +┌─ 3 Branches [L] R T║ space - Stage/unstage a - Stage all ║ │ +│ feature-branch ║ c - Commit d - Discard file ║ │ +│ * main ║ s - Quick stash S - Stash options ║ │ +│ ║ ║ │ +│ ║ Branches (3): ║ │ +└────────────────────║ [/] - Switch tabs enter - Checkout ║ │ +╔═ 4 Commits [C] R ══║ n - New branch d - Delete branch ║ │ +║ 95bc2ab Initial com║ R - Rename M - Merge ║ │ +║ ║ f - Fast-forward ║ │ +║ ║ ║ │ +║ ║ Commits (4): ║ │ +╚════════════════════║ [/] - Switch tabs space - Checkout ║ │ +┌─ 5 Stash (0) ──────║ g - Reset to C - Cherry-pick ║ │ +│ No stashes ║ t - Revert r - Reword (HEAD only) ║ │ +│ ║ y - Show SHA ║────────────────────┘ +│ ║ ║────────────────────┐ +│ ║ Stash (5): ║ │ +└────────────────────║ space - Apply g - Pop (apply+drop) ║ │ + ║ d - Drop n - Branch from stash ║────────────────────┘ +q:quit ?:help h/l:pan║ ║ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────╔═ Help - Keybindings ══════════════════════════════╗────────────────────┐ +│ main → 95bc2ab ║ Global: ║0b85f4 │ +└────────────────────║ q - Quit r - Refresh ║ │ +┌─ 2 Files (3) ──────║ h/l - Prev/Next panel 2-5 - Jump to panel ║ │ +│ M file2.txt ║ j/k - Move down/up z/Z - Undo/Redo ║ │ +│ M file1.txt ║ p - Pull P - Push ║ │ +│ ?? newfile.txt ║ ? - Help D - Reset options ║ │ +│ ║ ║ │ +└────────────────────║ Files (2): ║ │ +┌─ 3 Branches [L] R T║ space - Stage/unstage a - Stage all ║ │ +│ feature-branch ║ c - Commit d - Discard file ║ │ +│ * main ║ s - Quick stash S - Stash options ║ │ +│ ║ ║ │ +│ ║ Branches (3): ║ │ +└────────────────────║ [/] - Switch tabs enter - Checkout ║ │ +╔═ 4 Commits [C] R ══║ n - New branch d - Delete branch ║ │ +║ 95bc2ab Initial com║ R - Rename M - Merge ║ │ +║ ║ f - Fast-forward ║ │ +║ ║ ║ │ +║ ║ Commits (4): ║ │ +╚════════════════════║ [/] - Switch tabs space - Checkout ║ │ +┌─ 5 Stash (0) ──────║ g - Reset to C - Cherry-pick ║ │ +│ No stashes ║ t - Revert r - Reword (HEAD only) ║ │ +│ ║ y - Show SHA ║────────────────────┘ +│ ║ ║────────────────────┐ +│ ║ Stash (5): ║ │ +└────────────────────║ space - Apply g - Pop (apply+drop) ║ │ + ║ d - Drop n - Branch from stash ║────────────────────┘ +q:quit ?:help h/l:pan║ ║ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 95bc2ab │ │ commit 95bc2abf2b2afa44d77bb468eabbc44e550b85f4 │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (3) ──────────────┐ │ Date: Wed Jan 21 17:54:56 2026 -0500 │ +│ M file2.txt │ │ │ +│ M file1.txt │ │ Initial commit │ +│ ?? newfile.txt │ │ --- │ +│ │ │ README.md | 1 + │ +└────────────────────────────┘ │ file1.txt | 1 + │ +┌─ 3 Branches [L] R T ───────┐ │ file2.txt | 1 + │ +│ feature-branch │ │ 3 files changed, 3 insertions(+) │ +│ * main │ │ │ +│ │ │ diff --git a/README.md b/README.md │ +│ │ │ new file mode 100644 │ +└────────────────────────────┘ │ index 0000000..181e1c3 │ +╔═ 4 Commits [C] R ══════════╗ │ --- /dev/null │ +║ 95bc2ab Initial commit ║ │ +++ b/README.md │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +# Test Project │ +║ ║ │ diff --git a/file1.txt b/file1.txt │ +╚════════════════════════════╝ │ new file mode 100644 │ +┌─ 5 Stash (0) ──────────────┐ │ index 0000000..a29bdeb │ +│ No stashes │ │ --- /dev/null │ +│ │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +└────────────────────────────┘ │ │ + └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-modal && cd /tmp/lazygitclj-e2e-modal && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-modal/.git/ +[main (root-commit) 95bc2ab] 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 ffa41af] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-modal && cd /tmp/lazygitclj-e2e-modal && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-modal/.git/ +[main (root-commit) 95bc2ab] 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 ffa41af] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-modal + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/modal-debug.gif b/test/e2e/output/modal-debug.gif new file mode 100644 index 0000000..301c210 Binary files /dev/null and b/test/e2e/output/modal-debug.gif differ diff --git a/test/e2e/output/modal-scroll.ascii b/test/e2e/output/modal-scroll.ascii new file mode 100644 index 0000000..572ba3c --- /dev/null +++ b/test/e2e/output/modal-scroll.ascii @@ -0,0 +1,531 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2 +e-scroll && cd /tmp/lazygitclj-e2e-scroll && bb -- +config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2 +e-scroll && cd /tmp/lazygitclj-e2e-scroll && bb -- +config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitcl +j-e2e-scroll/.git/ +[main (root-commit) de5dd2a] Initial commit + 3 files changed, 3 insertions(+) + create mode 100644 README.md + create mode 100644 file1.txt + create mode 100644 file2.txt +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────────────────────────┐ +│ main → de5dd2a │ +└────────────────────────────────────────────────┘ +╔═ 2 Files (3) ══════════════════════════════════╗ +╚════════════════════════════════════════════════╝ +┌─ 3 Branches [L] R T ───────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 4 Commits [C] R ──────────────────────────────┐ +└────────────────────────────────────────────────┘ +┌─ 5 Stash (0) ──────────────────────────────────┐ +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2 +e-scroll && cd /tmp/lazygitclj-e2e-scroll && bb -- +config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitcl +j-e2e-scroll/.git/ +[main (root-commit) de5dd2a] Initial commit + 3 files changed, 3 insertions(+) + create mode 100644 README.md + create mode 100644 file1.txt + create mode 100644 file2.txt +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2 +e-scroll && cd /tmp/lazygitclj-e2e-scroll && bb -- +config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitcl +j-e2e-scroll/.git/ +[main (root-commit) de5dd2a] Initial commit + 3 files changed, 3 insertions(+) + create mode 100644 README.md + create mode 100644 file1.txt + create mode 100644 file2.txt +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/modal-scroll.gif b/test/e2e/output/modal-scroll.gif new file mode 100644 index 0000000..617e5d1 Binary files /dev/null and b/test/e2e/output/modal-scroll.gif differ diff --git a/test/e2e/output/navigation.ascii b/test/e2e/output/navigation.ascii new file mode 100644 index 0000000..573663e --- /dev/null +++ b/test/e2e/output/navigation.ascii @@ -0,0 +1,1416 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-nav && cd /tmp/lazygitclj-e2e-nav && bb --c +onfig /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-nav && cd /tmp/lazygitclj-e2e-nav && bb --c +onfig /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-nav/.git/ +[main (root-commit) 3347cf6] 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 78dd0ce] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-nav + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═════╗ +║ Staged: ║ +║ M ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═════╗ +║ Staged: ║ +║ M ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═════╗ +║ Staged: ║ +║ M ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═════╗ +║ Staged: ║ +║ M ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╔═ 3 Local (2) ══════╗ +║ > feature-branch ║ +║ * main ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╔═ 3 Local (2) ══════╗ +║ > feature-branch ║ +║ * main ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╔═ 3 Local (2) ════╗ +║ feature-branch ║ +║ * > main ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╔═ 3 Local (2) ════╗ +║ feature-branch ║ +║ * > main ║ +╚══════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╔═ 4 Commits (1) ══════════════════════════╗ +║ 3347cf6 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout C:cherry-pick t:revert p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╔═ 4 Commits (1) ══════════════════════════╗ +║ 3347cf6 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout C:cherry-pick t:revert p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (0) ╗ +║ No stashes ║ +╚══════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (0) ╗ +║ No stashes ║ +╚══════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╔═ 4 Commits (1) ══════════════════════════╗ +║ 3347cf6 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout C:cherry-pick t:revert p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╔═ 4 Commits (1) ══════════════════════════╗ +║ 3347cf6 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout C:cherry-pick t:revert p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╔═ 3 Local (2) ══════╗ +║ > feature-branch ║ +║ * main ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╔═ 3 Local (2) ══════╗ +║ > feature-branch ║ +║ * main ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╔═ 3 Local (2) ══════╗ +║ > feature-branch ║ +║ * main ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╔═ 3 Local (2) ══════╗ +║ > feature-branch ║ +║ * main ║ +╚════════════════════╝ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout n:new [/]:tabs p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╔═ 4 Commits (1) ══════════════════════════╗ +║ 3347cf6 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout C:cherry-pick t:revert p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╔═ 4 Commits (1) ══════════════════════════╗ +║ 3347cf6 > Initial commit (0 seconds ago) ║ +╚══════════════════════════════════════════╝ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:checkout C:cherry-pick t:revert p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (0) ╗ +║ No stashes ║ +╚══════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (0) ╗ +║ No stashes ║ +╚══════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═════╗ +║ Staged: ║ +║ M ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═════╗ +║ Staged: ║ +║ M ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3347cf6) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3347cf6 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-nav && cd /tmp/lazygitclj-e2e-nav && bb --c +onfig /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-nav/.git/ +[main (root-commit) 3347cf6] 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 78dd0ce] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-nav +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-nav && cd /tmp/lazygitclj-e2e-nav && bb --c +onfig /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-nav/.git/ +[main (root-commit) 3347cf6] 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 78dd0ce] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-nav +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/navigation.gif b/test/e2e/output/navigation.gif new file mode 100644 index 0000000..1bf9756 Binary files /dev/null and b/test/e2e/output/navigation.gif differ diff --git a/test/e2e/output/reset-menu.ascii b/test/e2e/output/reset-menu.ascii new file mode 100644 index 0000000..0b92cb5 --- /dev/null +++ b/test/e2e/output/reset-menu.ascii @@ -0,0 +1,876 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-reset && cd /tmp/lazygitclj-e2e-reset && bb + --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-reset && cd /tmp/lazygitclj-e2e-reset && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-reset/.git/ +[main (root-commit) bcf7fe9] 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 c24e652] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-reset + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ bcf7fe9 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 → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ────╔═ Reset Options ════════════════════════╗ │ +│ feature-branch ║ s - Soft reset (uncommit, keep staged) ║ │ +│ * main ║ m - Mixed reset (uncommit, unstage) ║ │ +│ ║ h - Hard reset (discard all changes) ║ │ +│ ║ ║ │ +└─────────────────────────║ u - Unstage all staged changes ║ │ +┌─ 4 Commits [C] R ───────║ d - Discard all unstaged changes ║ │ +│ bcf7fe9 Initial commit ║ c - Clean untracked files ║ │ +│ ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚════════════════════════════════════════╝ │ +└────────────────────────────┘ │ │ +┌─ 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 → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ────╔═ Reset Options ════════════════════════╗ │ +│ feature-branch ║ s - Soft reset (uncommit, keep staged) ║ │ +│ * main ║ m - Mixed reset (uncommit, unstage) ║ │ +│ ║ h - Hard reset (discard all changes) ║ │ +│ ║ ║ │ +└─────────────────────────║ u - Unstage all staged changes ║ │ +┌─ 4 Commits [C] R ───────║ d - Discard all unstaged changes ║ │ +│ bcf7fe9 Initial commit ║ c - Clean untracked files ║ │ +│ ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚════════════════════════════════════════╝ │ +└────────────────────────────┘ │ │ +┌─ 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 → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ────╔═ Reset Options ════════════════════════╗ │ +│ feature-branch ║ s - Soft reset (uncommit, keep staged) ║ │ +│ * main ║ m - Mixed reset (uncommit, unstage) ║ │ +│ ║ h - Hard reset (discard all changes) ║ │ +│ ║ ║ │ +└─────────────────────────║ u - Unstage all staged changes ║ │ +┌─ 4 Commits [C] R ───────║ d - Discard all unstaged changes ║ │ +│ bcf7fe9 Initial commit ║ c - Clean untracked files ║ │ +│ ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚════════════════════════════════════════╝ │ +└────────────────────────────┘ │ │ +┌─ 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 → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ bcf7fe9 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 → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ────╔═ Reset Options ════════════════════════╗ │ +│ feature-branch ║ s - Soft reset (uncommit, keep staged) ║ │ +│ * main ║ m - Mixed reset (uncommit, unstage) ║ │ +│ ║ h - Hard reset (discard all changes) ║ │ +│ ║ ║ │ +└─────────────────────────║ u - Unstage all staged changes ║ │ +┌─ 4 Commits [C] R ───────║ d - Discard all unstaged changes ║ │ +│ bcf7fe9 Initial commit ║ c - Clean untracked files ║ │ +│ ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚════════════════════════════════════════╝ │ +└────────────────────────────┘ │ │ +┌─ 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 → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ────╔═ Reset Options ════════════════════════╗ │ +│ feature-branch ║ s - Soft reset (uncommit, keep staged) ║ │ +│ * main ║ m - Mixed reset (uncommit, unstage) ║ │ +│ ║ h - Hard reset (discard all changes) ║ │ +│ ║ ║ │ +└─────────────────────────║ u - Unstage all staged changes ║ │ +┌─ 4 Commits [C] R ───────║ d - Discard all unstaged changes ║ │ +│ bcf7fe9 Initial commit ║ c - Clean untracked files ║ │ +│ ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚════════════════════════════════════════╝ │ +└────────────────────────────┘ │ │ +┌─ 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 +──────────────────────────────────────────────────────────────────────────────── + Unstaged all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file1.txt │ +║ M file1.txt ║ │ +++ b/file1.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +modified │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ bcf7fe9 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 +──────────────────────────────────────────────────────────────────────────────── + Unstaged all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file1.txt │ +║ M file1.txt ║ │ +++ b/file1.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +modified │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ bcf7fe9 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 +──────────────────────────────────────────────────────────────────────────────── + Unstaged all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ bcf7fe9 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 +──────────────────────────────────────────────────────────────────────────────── + Unstaged all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ bcf7fe9 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 +──────────────────────────────────────────────────────────────────────────────── + Unstaged all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚═════════════════════════╔═ Reset Options ════════════════════════╗ │ +┌─ 3 Branches [L] R T ────║ s - Soft reset (uncommit, keep staged) ║ │ +│ feature-branch ║ m - Mixed reset (uncommit, unstage) ║ │ +│ * main ║ h - Hard reset (discard all changes) ║ │ +│ ║ ║ │ +│ ║ u - Unstage all staged changes ║ │ +└─────────────────────────║ d - Discard all unstaged changes ║ │ +┌─ 4 Commits [C] R ───────║ c - Clean untracked files ║ │ +│ bcf7fe9 Initial commit ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚════════════════════════════════════════╝ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 +──────────────────────────────────────────────────────────────────────────────── + Unstaged all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚═════════════════════════╔═ Reset Options ════════════════════════╗ │ +┌─ 3 Branches [L] R T ────║ s - Soft reset (uncommit, keep staged) ║ │ +│ feature-branch ║ m - Mixed reset (uncommit, unstage) ║ │ +│ * main ║ h - Hard reset (discard all changes) ║ │ +│ ║ ║ │ +│ ║ u - Unstage all staged changes ║ │ +└─────────────────────────║ d - Discard all unstaged changes ║ │ +┌─ 4 Commits [C] R ───────║ c - Clean untracked files ║ │ +│ bcf7fe9 Initial commit ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚════════════════════════════════════════╝ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 +──────────────────────────────────────────────────────────────────────────────── + Discarded unstaged changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ │ +└────────────────────────────┘ │ │ +╔═ 2 Files (1) ══════════════╗ │ │ +║ ?? newfile.txt ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ bcf7fe9 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 +──────────────────────────────────────────────────────────────────────────────── + Discarded unstaged changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → bcf7fe9 │ │ │ +└────────────────────────────┘ │ │ +╔═ 2 Files (1) ══════════════╗ │ │ +║ ?? newfile.txt ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ bcf7fe9 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-reset && cd /tmp/lazygitclj-e2e-reset && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-reset/.git/ +[main (root-commit) bcf7fe9] 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 c24e652] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-reset + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-reset && cd /tmp/lazygitclj-e2e-reset && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-reset/.git/ +[main (root-commit) bcf7fe9] 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 c24e652] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-reset + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/reset-menu.gif b/test/e2e/output/reset-menu.gif new file mode 100644 index 0000000..c3bd331 Binary files /dev/null and b/test/e2e/output/reset-menu.gif differ diff --git a/test/e2e/output/staging.ascii b/test/e2e/output/staging.ascii new file mode 100644 index 0000000..b7630d9 --- /dev/null +++ b/test/e2e/output/staging.ascii @@ -0,0 +1,816 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stage && cd /tmp/lazygitclj-e2e-stage && bb --c +onfig /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stage && cd /tmp/lazygitclj-e2e-stage && bb --c +onfig /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stage/.git/ +[main (root-commit) 2fcfba5] 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 1bf4599] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 2fcfba5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file1.txt │ +║ M file1.txt ║ │ +++ b/file1.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +modified │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file1.txt │ +║ M file1.txt ║ │ +++ b/file1.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +modified │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file1.txt │ +║ M file2.txt ║ │ +++ b/file1.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +modified │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/file1.txt b/file1.txt │ +└────────────────────────────┘ │ index a29bdeb..2a08f83 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file1.txt │ +║ M file2.txt ║ │ +++ b/file1.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +modified │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ A newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file1.txt ║ │ +++ b/file2.txt │ +║ M file2.txt ║ │ @@ -1 +1,2 @@ │ +║ A newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/newfile.txt b/newfile.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (3) ══════════════╗ │ index 0000000..8e66654 │ +║ M file1.txt ║ │ --- /dev/null │ +║ M file2.txt ║ │ +++ b/newfile.txt │ +║ A newfile.txt ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +new file content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 → 2fcfba5 │ │ diff --git a/newfile.txt b/newfile.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (3) ══════════════╗ │ index 0000000..8e66654 │ +║ M file1.txt ║ │ --- /dev/null │ +║ M file2.txt ║ │ +++ b/newfile.txt │ +║ A newfile.txt ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +new file content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 +──────────────────────────────────────────────────────────────────────────────── + Can only discard unstaged changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 2fcfba5 │ │ diff --git a/newfile.txt b/newfile.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (3) ══════════════╗ │ index 0000000..8e66654 │ +║ M file1.txt ║ │ --- /dev/null │ +║ M file2.txt ║ │ +++ b/newfile.txt │ +║ A newfile.txt ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +new file content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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 +──────────────────────────────────────────────────────────────────────────────── + Can only discard unstaged changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → 2fcfba5 │ │ diff --git a/newfile.txt b/newfile.txt │ +└────────────────────────────┘ │ new file mode 100644 │ +╔═ 2 Files (3) ══════════════╗ │ index 0000000..8e66654 │ +║ M file1.txt ║ │ --- /dev/null │ +║ M file2.txt ║ │ +++ b/newfile.txt │ +║ A newfile.txt ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +new file content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ 2fcfba5 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-stage && cd /tmp/lazygitclj-e2e-stage && bb --c +onfig /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stage/.git/ +[main (root-commit) 2fcfba5] 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 1bf4599] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-stage + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stage && cd /tmp/lazygitclj-e2e-stage && bb --c +onfig /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stage/.git/ +[main (root-commit) 2fcfba5] 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 1bf4599] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-stage + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/staging.gif b/test/e2e/output/staging.gif new file mode 100644 index 0000000..977864b Binary files /dev/null and b/test/e2e/output/staging.gif differ diff --git a/test/e2e/output/stash-menu.ascii b/test/e2e/output/stash-menu.ascii new file mode 100644 index 0000000..6bec505 --- /dev/null +++ b/test/e2e/output/stash-menu.ascii @@ -0,0 +1,756 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash-menu && cd /tmp/lazygitclj-e2e-stash- +menu && bb --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash-menu && cd /tmp/lazygitclj-e2e-stash- +menu && bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stash-menu/.git/ +[main (root-commit) b6e5ae8] 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 d306507] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-stash-menu + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → b6e5ae8 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ b6e5ae8 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 → b6e5ae8 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch ╔═ Stash Options ═════════════════════════╗ │ +│ * main ║ a - Stash all changes ║ │ +│ ║ i - Stash all changes and keep index ║ │ +│ ║ U - Stash all including untracked files ║ │ +└─────────────────────────║ s - Stash staged changes only ║ │ +┌─ 4 Commits [C] R ───────║ u - Stash unstaged changes only ║ │ +│ b6e5ae8 Initial commit ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚═════════════════════════════════════════╝ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 → b6e5ae8 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch ╔═ Stash Options ═════════════════════════╗ │ +│ * main ║ a - Stash all changes ║ │ +│ ║ i - Stash all changes and keep index ║ │ +│ ║ U - Stash all including untracked files ║ │ +└─────────────────────────║ s - Stash staged changes only ║ │ +┌─ 4 Commits [C] R ───────║ u - Stash unstaged changes only ║ │ +│ b6e5ae8 Initial commit ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚═════════════════════════════════════════╝ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 → b6e5ae8 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch ╔═ Stash Options ═════════════════════════╗ │ +│ * main ║ a - Stash all changes ║ │ +│ ║ i - Stash all changes and keep index ║ │ +│ ║ U - Stash all including untracked files ║ │ +└─────────────────────────║ s - Stash staged changes only ║ │ +┌─ 4 Commits [C] R ───────║ u - Stash unstaged changes only ║ │ +│ b6e5ae8 Initial commit ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚═════════════════════════════════════════╝ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 → b6e5ae8 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ b6e5ae8 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 → b6e5ae8 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch ╔═ Stash Options ═════════════════════════╗ │ +│ * main ║ a - Stash all changes ║ │ +│ ║ i - Stash all changes and keep index ║ │ +│ ║ U - Stash all including untracked files ║ │ +└─────────────────────────║ s - Stash staged changes only ║ │ +┌─ 4 Commits [C] R ───────║ u - Stash unstaged changes only ║ │ +│ b6e5ae8 Initial commit ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚═════════════════════════════════════════╝ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 → b6e5ae8 │ │ diff --git a/file2.txt b/file2.txt │ +└────────────────────────────┘ │ index a29bdeb..723650f 100644 │ +╔═ 2 Files (3) ══════════════╗ │ --- a/file2.txt │ +║ M file2.txt ║ │ +++ b/file2.txt │ +║ M file1.txt ║ │ @@ -1 +1,2 @@ │ +║ ?? newfile.txt ║ │ line1 │ +║ ║ │ +staged content │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch ╔═ Stash Options ═════════════════════════╗ │ +│ * main ║ a - Stash all changes ║ │ +│ ║ i - Stash all changes and keep index ║ │ +│ ║ U - Stash all including untracked files ║ │ +└─────────────────────────║ s - Stash staged changes only ║ │ +┌─ 4 Commits [C] R ───────║ u - Stash unstaged changes only ║ │ +│ b6e5ae8 Initial commit ║ ║ │ +│ ║ esc - Cancel ║ │ +│ ╚═════════════════════════════════════════╝ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 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 +──────────────────────────────────────────────────────────────────────────────── + Stashed all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → b6e5ae8 │ │ │ +└────────────────────────────┘ │ │ +╔═ 2 Files (1) ══════════════╗ │ │ +║ ?? newfile.txt ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ b6e5ae8 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 b6e5ae8 Initial comm... │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── + Stashed all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → b6e5ae8 │ │ │ +└────────────────────────────┘ │ │ +╔═ 2 Files (1) ══════════════╗ │ │ +║ ?? newfile.txt ║ │ │ +║ ║ │ │ +║ ║ │ │ +║ ║ │ │ +╚════════════════════════════╝ │ │ +┌─ 3 Branches [L] R T ───────┐ │ │ +│ feature-branch │ │ │ +│ * main │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 4 Commits [C] R ──────────┐ │ │ +│ b6e5ae8 Initial commit │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ │ │ +┌─ 5 Stash (1) ──────────────┐ │ │ +│ 0 b6e5ae8 Initial comm... │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav spc:stage a:all c:commit p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── + Stashed all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → b6e5ae8 │ │ commit b6e5ae86aa941f490e574b7a9f7a021839c08ff7 │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (1) ──────────────┐ │ Date: Wed Jan 21 17:59:09 2026 -0500 │ +│ ?? newfile.txt │ │ │ +│ │ │ Initial commit │ +│ │ │ --- │ +│ │ │ README.md | 1 + │ +└────────────────────────────┘ │ file1.txt | 1 + │ +┌─ 3 Branches [L] R T ───────┐ │ file2.txt | 1 + │ +│ feature-branch │ │ 3 files changed, 3 insertions(+) │ +│ * main │ │ │ +│ │ │ diff --git a/README.md b/README.md │ +│ │ │ new file mode 100644 │ +└────────────────────────────┘ │ index 0000000..181e1c3 │ +╔═ 4 Commits [C] R ══════════╗ │ --- /dev/null │ +║ b6e5ae8 Initial commit ║ │ +++ b/README.md │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +# Test Project │ +║ ║ │ diff --git a/file1.txt b/file1.txt │ +╚════════════════════════════╝ │ new file mode 100644 │ +┌─ 5 Stash (1) ──────────────┐ │ index 0000000..a29bdeb │ +│ 0 b6e5ae8 Initial comm... │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── + Stashed all changes +┌─ 1 Status ─────────────────┐ ┌─ 0 Main ─────────────────────────────────────────────────────┐ +│ main → b6e5ae8 │ │ commit b6e5ae86aa941f490e574b7a9f7a021839c08ff7 │ +└────────────────────────────┘ │ Author: Test User │ +┌─ 2 Files (1) ──────────────┐ │ Date: Wed Jan 21 17:59:09 2026 -0500 │ +│ ?? newfile.txt │ │ │ +│ │ │ Initial commit │ +│ │ │ --- │ +│ │ │ README.md | 1 + │ +└────────────────────────────┘ │ file1.txt | 1 + │ +┌─ 3 Branches [L] R T ───────┐ │ file2.txt | 1 + │ +│ feature-branch │ │ 3 files changed, 3 insertions(+) │ +│ * main │ │ │ +│ │ │ diff --git a/README.md b/README.md │ +│ │ │ new file mode 100644 │ +└────────────────────────────┘ │ index 0000000..181e1c3 │ +╔═ 4 Commits [C] R ══════════╗ │ --- /dev/null │ +║ b6e5ae8 Initial commit ║ │ +++ b/README.md │ +║ ║ │ @@ -0,0 +1 @@ │ +║ ║ │ +# Test Project │ +║ ║ │ diff --git a/file1.txt b/file1.txt │ +╚════════════════════════════╝ │ new file mode 100644 │ +┌─ 5 Stash (1) ──────────────┐ │ index 0000000..a29bdeb │ +│ 0 b6e5ae8 Initial comm... │ └──────────────────────────────────────────────────────────────┘ +│ │ ┌─ Command Log ────────────────────────────────────────────────┐ +│ │ │ │ +│ │ │ │ +└────────────────────────────┘ └──────────────────────────────────────────────────────────────┘ +q:quit ?:help h/l:panels j/k:nav []:tabs spc:checkout p/P:pull/push +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash-menu && cd /tmp/lazygitclj-e2e-stash- +menu && bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stash-menu/.git/ +[main (root-commit) b6e5ae8] 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 d306507] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-stash-menu + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash-menu && cd /tmp/lazygitclj-e2e-stash- +menu && bb --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stash-menu/.git/ +[main (root-commit) b6e5ae8] 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 d306507] Feature work + 1 file changed, 1 insertion(+) +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-stash-menu + - main branch with 1 commit + - feature-branch with 1 extra commit + - 1 staged file (file2.txt) + - 1 unstaged file (file1.txt) + - 1 untracked file (newfile.txt) +Starting lazygitclj... + +Goodbye! +> + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/stash-menu.gif b/test/e2e/output/stash-menu.gif new file mode 100644 index 0000000..d425e29 Binary files /dev/null and b/test/e2e/output/stash-menu.gif differ diff --git a/test/e2e/output/stash-operations.ascii b/test/e2e/output/stash-operations.ascii new file mode 100644 index 0000000..df1aa2d --- /dev/null +++ b/test/e2e/output/stash-operations.ascii @@ -0,0 +1,996 @@ +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash && cd /tmp/lazygitclj-e2e-stash && bb + --config /home/ajet/repos/lazygitclj/bb.edn start + + + + + + + + + + + + + + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash && cd /tmp/lazygitclj-e2e-stash && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stash/.git/ +[main (root-commit) 3647220] 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 4cb8019] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-stash +Starting lazygitclj... + + + + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (0 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (0) ╮ +│ No stashes │ +╰──────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Stashed all changes + +╔═ 2 Files (1) ═════╗ +║ ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (2 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (1) ───────────────────────────╮ +│ stash@{0} 3647220 Initial commit (main) │ +╰─────────────────────────────────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Stashed all changes + +╔═ 2 Files (1) ═════╗ +║ ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (2 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (1) ───────────────────────────╮ +│ stash@{0} 3647220 Initial commit (main) │ +╰─────────────────────────────────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Stashed all changes + +╭─ 2 Files (1) ───╮ +│ │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (2 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (1) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Stashed all changes + +╭─ 2 Files (1) ───╮ +│ │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (2 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (1) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Applied stash@{0} + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (4 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (1) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Applied stash@{0} + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (4 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (1) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Popped stash@{0} + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (1) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Popped stash@{0} + +╭─ 2 Files (2) ───╮ +│ Staged: │ +│ M ile1.txt │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (1) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Popped stash@{0} + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (1) ───────────────────────────╮ +│ stash@{0} 3647220 Initial commit (main) │ +╰─────────────────────────────────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Popped stash@{0} + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (5 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (1) ───────────────────────────╮ +│ stash@{0} 3647220 Initial commit (main) │ +╰─────────────────────────────────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (6 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (1) ───────────────────────────╮ +│ stash@{0} 3647220 Initial commit (main) │ +╰─────────────────────────────────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + + +╔═ 2 Files (2) ═══╗ +║ Staged: ║ +║ M > ile1.txt ║ +║ ║ +║ Unstaged: ║ +║ ?? new-file.txt ║ +╚═════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (6 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (1) ───────────────────────────╮ +│ stash@{0} 3647220 Initial commit (main) │ +╰─────────────────────────────────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Stashed all changes + +╔═ 2 Files (1) ═════╗ +║ ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (7 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (2) ───────────────────────────╮ +│ stash@{0} 3647220 Initial commit (main) │ +│ stash@{1} 3647220 Initial commit (main) │ +╰─────────────────────────────────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Stashed all changes + +╔═ 2 Files (1) ═════╗ +║ ║ +║ ║ +║ Unstaged: ║ +║ ?? > new-file.txt ║ +╚═══════════════════╝ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (7 seconds ago) │ +╰────────────────────────────────────────╯ +╭─ 5 Stash (2) ───────────────────────────╮ +│ stash@{0} 3647220 Initial commit (main) │ +│ stash@{1} 3647220 Initial commit (main) │ +╰─────────────────────────────────────────╯ + +q:quit ?:help h/l:switch space:stage/unstage a:all c:commit s:stash p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Stashed all changes + +╭─ 2 Files (1) ───╮ +│ │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (7 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (2) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +║ stash@{1} 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Stashed all changes + +╭─ 2 Files (1) ───╮ +│ │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (7 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (2) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +║ stash@{1} 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Dropped stash@{0} + +╭─ 2 Files (1) ───╮ +│ │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (1) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +lazygitclj main (3647220) + + Dropped stash@{0} + +╭─ 2 Files (1) ───╮ +│ │ +│ │ +│ Unstaged: │ +│ ?? new-file.txt │ +╰─────────────────╯ +╭─ 3 Local (2) ────╮ +│ feature-branch │ +│ * main │ +╰──────────────────╯ +╭─ 4 Commits (1) ────────────────────────╮ +│ 3647220 Initial commit (8 seconds ago) │ +╰────────────────────────────────────────╯ +╔═ 5 Stash (1) ═════════════════════════════╗ +║ stash@{0} > 3647220 Initial commit (main) ║ +╚═══════════════════════════════════════════╝ + +q:quit ?:help h/l:switch space:apply g:pop d:drop p:pull P:push + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash && cd /tmp/lazygitclj-e2e-stash && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stash/.git/ +[main (root-commit) 3647220] 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 4cb8019] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-stash +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── +> ./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash && cd /tmp/lazygitclj-e2e-stash && bb + --config /home/ajet/repos/lazygitclj/bb.edn start +Initialized empty Git repository in /tmp/lazygitclj-e2e-stash/.git/ +[main (root-commit) 3647220] 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 4cb8019] Add feature + 1 file changed, 1 insertion(+) + create mode 100644 feature.txt +Switched to branch 'main' +Test repo created at /tmp/lazygitclj-e2e-stash +Starting lazygitclj... + +Goodbye! +> + + + + + + + + + + + +──────────────────────────────────────────────────────────────────────────────── diff --git a/test/e2e/output/stash-operations.gif b/test/e2e/output/stash-operations.gif new file mode 100644 index 0000000..c0c49f4 Binary files /dev/null and b/test/e2e/output/stash-operations.gif differ diff --git a/test/e2e/output/toggle-all-clajygit.gif b/test/e2e/output/toggle-all-clajygit.gif new file mode 100644 index 0000000..a58865e Binary files /dev/null and b/test/e2e/output/toggle-all-clajygit.gif differ diff --git a/test/e2e/output/toggle-all-test.gif b/test/e2e/output/toggle-all-test.gif new file mode 100644 index 0000000..d881ee0 Binary files /dev/null and b/test/e2e/output/toggle-all-test.gif differ diff --git a/test/e2e/setup-test-repo.sh b/test/e2e/setup-test-repo.sh index d10d78d..7c21af4 100755 --- a/test/e2e/setup-test-repo.sh +++ b/test/e2e/setup-test-repo.sh @@ -1,47 +1,37 @@ #!/bin/bash -# Setup a test git repository for e2e testing +# Setup a test git repository for e2e tests +# Usage: ./setup-test-repo.sh /tmp/test-repo -set -e +REPO_DIR="${1:-/tmp/lazygitclj-e2e-test}" -TEST_REPO="${1:-/tmp/lazygitclj-test-repo}" +# Remove existing repo if present +rm -rf "$REPO_DIR" -# Clean up if exists -rm -rf "$TEST_REPO" -mkdir -p "$TEST_REPO" -cd "$TEST_REPO" - -# Initialize git repo +# Create and initialize repo +mkdir -p "$REPO_DIR" +cd "$REPO_DIR" git init -b main + +# Configure git git config user.email "test@example.com" git config user.name "Test User" -# Create initial files and commit +# Create initial files echo "# Test Project" > README.md echo "line1" > file1.txt -echo "line1" > file2.txt +echo "line2" > file2.txt git add . git commit -m "Initial commit" -# Create a feature branch +# Create feature branch with changes git checkout -b feature-branch -echo "feature work" >> file1.txt +echo "feature content" > feature.txt git add . -git commit -m "Feature work" +git commit -m "Add feature" + +# Go back to main and make some uncommitted changes git checkout main - -# Create some unstaged changes echo "modified" >> file1.txt +echo "new file" > new-file.txt -# Create untracked file -echo "new file content" > newfile.txt - -# Stage one file -echo "staged content" >> file2.txt -git add file2.txt - -echo "Test repo created at $TEST_REPO" -echo " - main branch with 1 commit" -echo " - feature-branch with 1 extra commit" -echo " - 1 staged file (file2.txt)" -echo " - 1 unstaged file (file1.txt)" -echo " - 1 untracked file (newfile.txt)" +echo "Test repo created at $REPO_DIR" diff --git a/test/e2e/stash-operations.tape b/test/e2e/stash-operations.tape index ccb60bc..852ec86 100644 --- a/test/e2e/stash-operations.tape +++ b/test/e2e/stash-operations.tape @@ -1,5 +1,5 @@ # VHS E2E test for lazygitclj - Stash operations -# Tests stash functionality (s for quick stash, S for stash menu) +# Tests stash push, apply, pop, drop Output test/e2e/output/stash-operations.gif Output test/e2e/output/stash-operations.ascii @@ -12,41 +12,48 @@ Set Width 1000 Set Height 600 Set Framerate 10 -# Setup test repo with changes and run lazygitclj +# Setup test repo and run lazygitclj Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash && cd /tmp/lazygitclj-e2e-stash && bb --config /home/ajet/repos/lazygitclj/bb.edn start" Enter Sleep 2s -# Should be on Files panel with staged and unstaged files -# Quick stash all changes with 's' +# Should see modified files in Files panel +# Stash all changes with 's' Type "s" Sleep 1s -# Files panel should now be clean, check stash panel -Type "4" +# Working tree should now be clean +# Switch to stash panel (5) +Type "5" Sleep 500ms -# Should see one stash entry -# Navigate to stash and apply it with space +# Should see 1 stash entry +# Apply stash with space Type " " Sleep 1s -# Go back to files panel - should see changes restored -Type "1" +# Pop stash with g (should remove it) +Type "g" +Sleep 1s + +# Create another stash by going back to files +Type "2" Sleep 500ms -# Stash again with 's' +# Make changes visible, stash again +Type "r" +Sleep 500ms Type "s" Sleep 1s -# Go to stash panel -Type "4" +# Go to stash panel and drop +Type "5" Sleep 500ms - -# Pop the stash with 'g' (apply and remove) -Type "g" +Type "d" Sleep 1s +# Stash should be dropped + # Quit Type "q" Sleep 1s