mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
fix: allow git fixup fzf script to work on large repos
This commit is contained in:
parent
554cbabdb2
commit
3b38a2e982
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@
|
||||||
name = "git-fixup-fzf";
|
name = "git-fixup-fzf";
|
||||||
runtimeInputs = [pkgs.fzf pkgs.gnugrep];
|
runtimeInputs = [pkgs.fzf pkgs.gnugrep];
|
||||||
text = ''
|
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
|
| fzf --ansi --multi --no-sort --reverse --print-query --expect=ctrl-d --toggle-sort=\`); then
|
||||||
echo aborted
|
echo aborted
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue