Re: Question about .git/objects/info/alternates
- From
Stephen Boyd <bebarino@gmail.com>
- Date
- Mar 24, 2010, 20:16 UTC
- Message-ID
- <780e0a6b1003241316i4bbd4489w63ba0308706e4d20@mail.gmail.com>
- In-Reply-To
- <a038bef51003241153g33445607qb3ab750e08b0584@mail.gmail.com>
On Wed, Mar 24, 2010 at 11:53 AM, Chris Packham <judge.packham@gmail.com> wrote:
> > +USAGE='[-r|--recursive] [-a|--add <dir>] [-f|--force -d|--delete <dir>]'
[...]
Show 5 quoted lines
> +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 <dir> git alternates delete [-f|--force] <dir>