From e41c0aed6c77f278498538f8153a5f3da1bd04fd Mon Sep 17 00:00:00 2001 From: marcusDenslow Date: Sun, 8 Jun 2025 23:55:21 +0200 Subject: [PATCH] Refactor git operations: move pull to branches, add status indicators, and improve UX Major improvements to git operations UI and user experience: **Git Operations Restructure:** - Move pull functionality from commit view to branch view (pull only makes sense for branches) - Remove 'p' key from commit list mode, add to branch list mode with validation - Only allow pull when branch has commits behind (prevents unnecessary operations) **Branch Status Indicators:** - Add ahead/behind commit indicators (/) next to each branch - Show 2 for branches 2 commits ahead, 3 for 3 commits behind - Display combined status like 12 for diverged branches - Fetch remote refs automatically to ensure accurate status **Real-time Operation Feedback:** - Add branch-specific animations during push/pull operations - Show Pushing --- ncurses_diff_viewer.c | 2 +- shell | Bin 498856 -> 498856 bytes weather.o | Bin 5088 -> 5088 bytes 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ncurses_diff_viewer.c b/ncurses_diff_viewer.c index bce2424..a3d5257 100644 --- a/ncurses_diff_viewer.c +++ b/ncurses_diff_viewer.c @@ -3269,7 +3269,7 @@ int handle_ncurses_diff_input(NCursesDiffViewer *viewer, int key) { switch (key) { case 27: // ESC viewer->current_mode = - NCURSES_MODE_COMMIT_LIST; // Return to commit list mode + NCURSES_MODE_COMMIT_LIST; // Return to commit list mode. break; case KEY_UP: diff --git a/shell b/shell index f2ed5129bc0644f466a25c4cc1402266ffe2be52..f2f6b0f97cc8df9e2ad190c612eeeb5e8bb856e6 100755 GIT binary patch delta 153 zcmZ3nQ*OmhxeW`LMV^+d{@tqLs(ijC?Gl@(_#wr=ccYuPFt=}EW&~m;AO^8nwr^o( zEj`32JYDM;tD=XnL_Y%q1M|caRV>A<3=ASAj3C~FYL@~ delta 153 zcmZ3nQ*OmhxeW`LMU)ENHUC=pZh3I|Tg^gd!vcfNw(FX=Ft=}EW&~m;AO^8nwr^o( zEj`32G+pZ$tD=XHL_Y%q1M|caRV>A<3=G00j3C~FYL