Dear diary, on Mon, May 30, 2005 at 05:05:21AM CEST, I got a letter where Jonas Fonseca <fonseca@diku.dk> told me that... > [ Sorry for the resend. This should bring all usage strings in sync. I > forgot to add the new options. ] > > - Synchronize usage strings with those in cg-help. The command > identifiers are still not as descriptive, though. Ok, I'll focus on this point (the rest seems fine). I think it's inferior this way, since you are losing information, and for no benefit. > diff --git a/cg-clone b/cg-clone > --- a/cg-clone > +++ b/cg-clone > @@ -15,11 +15,12 @@ > -USAGE="cg-clone [-s] LOCATION [<directory>]" > +USAGE="cg-clone [-s] LOCATION [DESTINATION]" > @@ -30,7 +31,7 @@ if [ "$1" = "-s" ]; then > fi > > location=$1 > -[ "$location" ] || die "usage: cg-clone [-s] SOURCE_LOC [DESTDIR]" > +[ "$location" ] || usage LOCATION -> SOURCE_LOC is fine in this context (if we would ever want DEST_LOC, it would be better to stick with SOURCE_LOC, though). But DESTDIR->DESTINATION is losing information. In cogito.txt you describe DESTINATION as a general target location, but it's really a directory here. And it's shorter. > diff --git a/cg-export b/cg-export > --- a/cg-export > +++ b/cg-export > @@ -22,7 +22,7 @@ USAGE="cg-export DESTINATION [TREE]" > dest=$1 > id=$(tree-id $2) > > -([ "$dest" ] && [ "$id" ]) || die "usage: cg-export DEST [TREE_ID]" > +([ "$dest" ] && [ "$id" ]) || usage I'm for DESTDIR here too, and what harm does the _ID part make here? I think it's non-obvious otherwise - "TREE" can be understood as some directory name too. > diff --git a/cg-help b/cg-help > --- a/cg-help > +++ b/cg-help > @@ -43,7 +43,7 @@ Available commands: > cg-export DEST [TREE_ID] > cg-help [COMMAND] > cg-init > - cg-log [-c] [-f] [-m] [-r FROM_ID[:TO_ID]] [FILE]... > + cg-log [-c] [-f] [-m] [-uUSERNAME] [-r FROM_ID[:TO_ID]] [FILE]... > cg-ls [TREE_ID] > cg-merge [-c] [-b BASE_ID] FROM_ID > cg-mkpatch [-m] [-s] [-r FROM_ID[:TO_ID]] So what about bringing those in sync too? (Or alternatively letting it be now and build the output dynamically in another patch.) > diff --git a/cg-merge b/cg-merge > --- a/cg-merge > +++ b/cg-merge > @@ -38,11 +38,11 @@ fi > base= > if [ "$1" = "-b" ]; then > shift > - [ "$1" ] || die "usage: cg-merge [-c] [-b BASE_ID] FROM_ID" > + [ "$1" ] || usage I think BASE_ID->REVISION is loosing information too. What about BASE_COMMIT or something? -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Mon May 30 18:46:22 2005
This archive was generated by hypermail 2.1.8 : 2005-05-30 18:46:23 EST