From: Chris Packham Date: Wed, 24 Mar 2010 20:37:47 GMT Subject: Re: Question about .git/objects/info/alternates Message-ID: In-Reply-To: <780e0a6b1003241316i4bbd4489w63ba0308706e4d20@mail.gmail.com> On Wed, Mar 24, 2010 at 1:16 PM, Stephen Boyd wrote: > On Wed, Mar 24, 2010 at 11:53 AM, Chris Packham wrote: >> >> +USAGE='[-r|--recursive] [-a|--add ] [-f|--force -d|--delete ]' > [...] >> +case $oper in >> +    add) add_alternate ;; >> +    del) del_alternate ;; >> +    *)   show_alternates ;; >> +esac > > From a very high-level this should probably be more like git remote > and git notes. 'add' and 'delete' would be subcommands instead of > options. Plus you might have an explicit subcommand for show (or > list?). Something like > > git alternates [show]  [-r|--recursive] > git alternates add > git alternates delete  [-f|--force] > I like that suggestion. I'd have to figure out the option parsing but should be doable. This is of course assuming it remains its own command set and isn't rolled into something else.