wfxr / forgit

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

Fix issues with `ga`, `gsp` & `gcf` with git 2.25.1 #335

Closed sandr01d closed 2 months ago

sandr01d commented 5 months ago

Check list

Description

We're currently using --pathspec-file-nul in ga, gsp and gcf. This option is not available in older versions of git, such as the current release in the Ubuntu repositories (2.25.1). This PR removes the usage of --pathspec-file-nul in favor of storing the file names passed to the git command in an array instead of a string.
This PR is based on #326. I will rebase and mark it as ready for review, once #326 is merged.

Fixes #328

Type of change

Test environment