From 91107dce9bd4b179fd3bc391a84e6af9cef8ac3a Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 7 Dec 2018 11:38:14 +0100 Subject: [PATCH] Improve the script git-show-content It might need `--no-pager`, to avoid iterating on the pager screens. --- Scripts/developer_scripts/git-show-content | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/developer_scripts/git-show-content b/Scripts/developer_scripts/git-show-content index 5ccd986a7ac..b72e089e828 100755 --- a/Scripts/developer_scripts/git-show-content +++ b/Scripts/developer_scripts/git-show-content @@ -14,17 +14,17 @@ function reset() { trap reset ERR EXIT KILL TERM INT -for c in $(git log --pretty='%h' --first-parent cgal/master..$base); do +for c in $(git --no-pager log --pretty='%h' --first-parent cgal/master..$base); do git update-ref refs/cgal/git-show-content $c git bundle create bundle ${c}^..refs/cgal/git-show-content > /dev/null 2>&1 gzip -f bundle size=${(l:4:)$(( $(zstat +size bundle.gz) / 1024 ))} - git show --no-patch --pretty='%C(auto)%h (SIZE: %C(auto)'"${size}kB)"' %s <%an> %cD' $c + git --no-pager show --no-patch --pretty='%C(auto)%h (SIZE: %C(auto)'"${size}kB)"' %s <%an> %cD' $c parents=(${(@)$(git rev-parse $c^@)}) if ! [ ${#${parents:1}[@]} -eq 0 ]; then - git show --no-patch --pretty=' merge: %h%C(auto)% d' ${parents:1} + git --no-pager show --no-patch --pretty=' merge: %h%C(auto)% d' ${parents:1} fi done last=$c -[ -n "$last" ] && git log -1 --pretty='Base commit: %C(auto)%h %d' ${last}'~' +[ -n "$last" ] && git --no-pager log -1 --pretty='Base commit: %C(auto)%h %d' ${last}'~'