wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

Refactor: Replace deferred git commands with regular git commands #355

Closed sandr01d closed 3 months ago

sandr01d commented 4 months ago

Check list

Description

We were using deferred code in git commands in some places without any apparent reason. Each of these deferred code snippets was only executed a single time, so we can replace them with regular git commands. This PR replaces the remaining git commands that were not removed in #343, because they were not moved into functions.

Note

This PR belongs to #326 and resulted from discussions in #324.

Type of change

Test environment

sandr01d commented 4 months ago

This should be the last big PR. After this, only small changes are left :rocket:

carlfriedrich commented 3 months ago

@sandr01d Perfect, thanks for the update! Will you do the enter_cmd changes in a next PR?

sandr01d commented 3 months ago

Changes have been merged with #326