What I miss from Cogito...
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Mar 23, 2008, 17:15 UTC
- Message-ID
- <47E69044.3000207@zytor.com>
This much later, there are a few minor things I still miss from Cogito. I believe fixing either would be quite trivial, so I thought I'd post a note.
1. The ability to clone into the current directory
cg-clone had a -c option, which allowed cloning into the current
directory. This is particularly useful, since I keep my common
dot files in a git repository, so all I need to do to set up a new
machine is to clone that git repository over my empty home directory.Native git doesn't have any equivalent, other than:
git clone -n .... tmp
mv tmp/.git .
rm -rf tmp
git checkout HEAD2. cg-restore
Cogito separated "reset" and "restore". This is a syntactic sugar
issue, but having to type "git reset --hard -- path" makes me
nervous, especially since hitting Enter at the wrong time could have
serious and irrevocable consequences. I also note that this particular use of "git reset" is actually
undocumented, but it seems to work.Those are pretty much the only Cogito command I have found myself either missing or using since I made a mental note to track this stuff, a few months ago.
-hpa