[PATCH] Another multi-argument patch
- From: Paul P Komkoff Jr <i stingr net>
- To: meld-list gnome org
- Subject: [PATCH] Another multi-argument patch
- Date: Sun, 22 Apr 2007 02:27:35 +0400
Hi.
This is another multi-argument patch. This code will allow meld to
recognize tkdiff syntax.
diff --git a/meldapp.py b/meldapp.py
index 60f6b67..64ff7bb 100644
--- a/meldapp.py
+++ b/meldapp.py
@@ -870,6 +870,19 @@ def main():
if len(args) == 0:
pass
+ # tkdiff-like specification of input files
+ elif ":" in args:
+ r = []
+ for x in args:
+ if x == ":":
+ if len(r) > 1:
+ app.append_diff(r)
+ r = []
+ else:
+ r.append(x)
+ if len(r) > 1:
+ app.append_diff(r)
+
elif len(args) == 1:
a = args[0]
if os.path.isfile(a):
--
Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key
This message represents the official view of the voices in my head
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]