On 2010-05-03 16:11:50 +0200, Danny Kukawka wrote:
From 7fb0bf7e8a1b3a87eb394c646425c70aa7d84c2b Mon Sep 17 00:00:00 2001 From: Danny Kukawka <danny.kukawka@web.de> Date: Mon, 3 May 2010 10:05:36 +0200 Subject: [PATCH] add run_pager() and make osc log/diff work like git log/diff
Added new function run_pager() to get 'osc log/diff' work like 'git log/diff' which send the output to PAGER (which is by default: less or what's defined in the environment).
Hmm I don't think it's a good idea to change the default behaviour. What do you think about making it a config option?
+def run_pager(message): + import tempfile + + tmpfile = None + + if tmpfile is None: + tmpfile = tempfile.NamedTemporaryFile() This check seems to be redundant:)
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org