wfxr / forgit

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

Process files in a single command in ga & gcf #279

Closed sandr01d closed 1 year ago

sandr01d commented 1 year ago

Check list

Description

Checkout/Add files in a single command in _forgit_add and _forgit_checkout_file() instead of processing each file individually with xargs. This has the following benefits:

  1. It's faster
  2. Prevents git from spamming "Updated 1 path from the index" for each file when checking out files

Type of change

Test environment

cjappl commented 1 year ago

Cool! Passes the eye test, but let me test it out at work next week before merging!

sandr01d commented 1 year ago

Sure, I'll do the same.

On January 14, 2023 2:18:48 PM UTC, Chris Apple @.***> wrote:

Cool! Passes the eye test, but let me test it out at work next week before merging!

-- Reply to this email directly or view it on GitHub: https://github.com/wfxr/forgit/pull/279#issuecomment-1382751794 You are receiving this because you authored the thread.

Message ID: @.***>

cjappl commented 1 year ago

Cool! functionally works for me. I pinged @carlfriedrich for a second pair of eyes, but I'll merge this soon either way unless I hear objections

sandr01d commented 1 year ago

Tested this throughout the day. Everything is working as supposed to for me.

cjappl commented 1 year ago

Working well for me, shippin it