broot icon indicating copy to clipboard operation
broot copied to clipboard

Always run difftool within git dir?

Open AeliusSaionji opened this issue 2 years ago • 1 comments

broot runs the following command for gd

git difftool -y /home/aelius/qmk_firmware/keyboards/ergodox_ez_rhalf/keymaps/ergopad/

But unless I started broot from within qmk_firmare, this will fail with

fatal: difftool requires worktree or --no-index

Perhaps this is a knowledge deficit on my end, but I did not know that this was a requirement and did not immediately understand what the error was telling me.

If you think it appropriate, perhaps broot could intelligently execute gd and other relevant commands within the git worktree, regardless of where broot was started.

Thanks!

AeliusSaionji avatar Apr 19 '23 02:04 AeliusSaionji

You're right. Never noticed that as I always launch this command in a broot launched in a repository.

Canop avatar Apr 19 '23 17:04 Canop