From: Vincent Bernat Date: Sat, 14 Nov 2020 08:02:37 +0000 (+0100) Subject: build: use less as a pager for git X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5892bc769aeed7c5aa3215af98a2d933c7baf16d;p=thirdparty%2Flldpd.git build: use less as a pager for git --- diff --git a/tasks.py b/tasks.py index b4c3c391..a5d07026 100644 --- a/tasks.py +++ b/tasks.py @@ -88,7 +88,7 @@ def build(c): c.run("git add .") c.run("git diff --stat HEAD || true", pty=True) if confirm("More diff?", default=True): - c.run("git diff --word-diff HEAD || true", pty=True) + c.run("env GIT_PAGER=less git diff --word-diff HEAD || true", pty=True) if confirm("Keep?", default=True): c.run('git commit -a -m "Update generated copy of website"') c.run('git push origin')