jesseduffield.lazygit/pkg
Jesse Duffield 26ca41a40e Handle pending actions properly in git commands that require credentials
I don't know if this is a hack or not: we run a git command and increment the pending action
count to 1 but at some point the command requests a username or password, so we need to prompt
the user to enter that. At that point we don't want to say that there is a pending action,
so we decrement the action count before prompting the user and then re-increment it again afterward.

Given that we panic when the counter goes below zero, it's important that it's not zero
when we run the git command (should be impossible anyway).

I toyed with a different approach using channels and a long-running goroutine that
handles all commands that request credentials but it feels over-engineered compared to this
commit's approach.
2023-07-08 22:54:52 +10:00
..
app Use comment char config on interactive rebase 2023-07-02 02:07:32 -03:00
cheatsheet Use sentence case everywhere 2023-05-25 23:52:19 +10:00
commands Handle pending actions properly in git commands that require credentials 2023-07-08 22:54:52 +10:00
common introduce Common struct for passing around common stuff 2022-01-04 09:07:15 +11:00
config Color view frame differently when searching/filtering 2023-07-03 12:54:14 +10:00
constants update release notes 2021-04-20 18:34:47 +10:00
env clearer separation of concerns when bootstrapping application 2022-05-07 16:02:04 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Handle pending actions properly in git commands that require credentials 2023-07-08 22:54:52 +10:00
i18n Differentiate between different filter modes 2023-07-03 12:54:14 +10:00
integration Add busy count for integration tests 2023-07-08 22:54:52 +10:00
logs Allow global logging when developing 2023-05-25 18:31:32 +10:00
secureexec Cache binary paths 2023-05-23 19:15:33 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Add busy count for integration tests 2023-07-08 22:54:52 +10:00
theme Color view frame differently when searching/filtering 2023-07-03 12:54:14 +10:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils View filtering (#2680) 2023-07-03 12:57:11 +10:00