diff --git a/fish/.config/fish/functions/gl.fish b/fish/.config/fish/functions/gl.fish index de74031..46e6cc1 100644 --- a/fish/.config/fish/functions/gl.fish +++ b/fish/.config/fish/functions/gl.fish @@ -4,7 +4,7 @@ function gl --description 'Git browse commits' return 0 end - set -l log_line_to_hash "echo {} | grep -o '[a-f0-9]\{7\}' | head -1" + set -l log_line_to_hash "echo {} | grep -o '[a-f0-9]\{9\}' | head -1" set -l view_commit "$log_line_to_hash | xargs -I % sh -c 'git show --color=always % | bat -ldiff'" set -l view_commit_nvim "$log_line_to_hash | xargs -I % sh -c 'git show %'" set -l copy_commit_hash "$log_line_to_hash | wl-copy"