Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: Question about .git/objects/info/alternates

From: Chris Packham <hidden>
Date: 2016-06-15 22:48:29

On Wed, Mar 24, 2010 at 1:16 PM, Stephen Boyd [off-list ref] wrote:
On Wed, Mar 24, 2010 at 11:53 AM, Chris Packham [off-list ref] wrote:
quoted
+USAGE='[-r|--recursive] [-a|--add <dir>] [-f|--force -d|--delete <dir>]'
[...]
quoted
+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>
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help