1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

fix: allow git fixup fzf script to work on large repos

This commit is contained in:
oddlama 2024-08-13 19:05:26 +02:00
parent 554cbabdb2
commit 3b38a2e982
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -70,7 +70,7 @@
name = "git-fixup-fzf";
runtimeInputs = [pkgs.fzf pkgs.gnugrep];
text = ''
if ! commit=$(git log --graph --color=always --format="%C(auto)%h%d %s %C(reset)%C(bold)%cr" "$@" \
if ! commit=$(set +o pipefail; git log --graph --color=always --format="%C(auto)%h%d %s %C(reset)%C(bold)%cr" "$@" \
| fzf --ansi --multi --no-sort --reverse --print-query --expect=ctrl-d --toggle-sort=\`); then
echo aborted
exit 0