From: Karl Hasselström Date: Mon, 21 May 2007 11:39:15 GMT Subject: Re: [PATCH 1/2] Update the bash prompt from 'applied' instead of the obsolete 'current' Message-ID: <20070521113915.GA3090@diana.vm.bytemark.co.uk> In-Reply-To: <20070521101540.GB32510@diana.vm.bytemark.co.uk> On 2007-05-21 12:15:40 +0200, Karl Hasselström wrote: > We might consider having plumbing written in C or something, and > make sure that the plumbing can be called directly if there's need, > but it's going to complicate things greatly compared to pure Python. What I'm (foggily) envisioning here is to rewrite parts of StGIT (as little as possible) as a C library (libstgit.so?), and call the library both from the Python code, and from a "plumbing" C program (stgit-helper?). We should not try to make the library API stable, just like the current git library. There are two kinds of things we'd want to have in the library: (1) things that are too slow to do in Python, and (2) things that need to be available from stgit-helper in order to avoid Python's startup cost, such as top/applied/unapplied for the bash completion and bash prompt. -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle