[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] tla update-config
From: |
Jan Hudec |
Subject: |
Re: [Gnu-arch-users] tla update-config |
Date: |
Tue, 30 Sep 2003 22:55:05 +0200 |
User-agent: |
Mutt/1.5.4i |
On Tue, Sep 30, 2003 at 22:49:43 +0200, Gergely Nagy wrote:
> > Since order of application of non-conflicting patches (with common base)
> > is not important, only difference is what gets in rejects on conflicts.
> > That's not worth the extra work in most cases.
>
> Well, adding an option to use replay instead of update is rather
> trivial, methinks... :)
>
> Ie, tla update-config would use update, tla update-config --replay would
> use replay... Or I might add replay-config too... but that is either lot
> of code duplication (I already copy&wasted too much), or needs some care
> to implement nicely.
You can make two interfaces cmd_replay_config and cmd_update_config to
one function, say cmd_replay_update_config. The first two would just
call the third with one different argument and the third would do the
rest. So you only end up duplicating the tables (for command
lookup/help).
Anyway, replay should probably be primary and update should be the
option (the more common command-line should be the shorter one).
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec
<address@hidden>