[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] [PATCH] my-project-id

From: Russell
Subject: Re: [Gnu-arch-users] [PATCH] my-project-id
Date: Sun, 25 Apr 2004 00:10:05 +0800
User-agent: Mutt/1.5.4i

On Fri, Apr 23, 2004 at 04:50:27PM -0400, Miles Bader wrote:
> BTW, is there any reason this new function can't just use the existing
> `tla my-id' command, making the regexp an optional final argument?
> E.g.,
>    tla my-id 'Miles Bader <address@hidden>'
>    tla my-id 'Miles Bader <address@hidden>' 'address@hidden'

That's a good idea, I think.  How about:

Print the project id if in a source tree and there is a matching id, or
the global id otherwise:

  tla my-id

Print the global id regardless:

  tla my-id -g

Print the project id for a project, if it exists (the arg is a fully
qualified version name, not a regex).  This is for checking that the
regex you have entered is doing what you thought it would, and will not
print the global id even if there is no matching project id:

  tla my-id -p 'address@hidden/a--b--1'

Set the global id:

  tla my-id 'Joe <address@hidden>'

Set a project id, appending to the list, or replacing the entry if there
is an exact string match for the regex:

  tla my-id 'Joe (at home) <address@hidden>' 'address@hidden/proj--.*'

Remove a project id, requiring an exact string match for the regex:

  tla my-id -d 'address@hidden/proj--.*'

This doesn't change existing behaviour except for doing 'tla my-id'
while in a source tree.  And changing id for a particular source tree is
the whole point.


Russell Steicke

-- Fortune says:
narcolepulacyi, n.:
        The contagious action of yawning, causing everyone in sight
        to also yawn.
                -- "Sniglets", Rich Hall & Friends

reply via email to

[Prev in Thread] Current Thread [Next in Thread]