All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: What I miss from Cogito...
Date: Sun, 23 Mar 2008 10:15:48 -0700	[thread overview]
Message-ID: <47E69044.3000207@zytor.com> (raw)

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 HEAD


2. 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

             reply	other threads:[~2008-03-23 17:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-23 17:15 H. Peter Anvin [this message]
2008-03-23 17:38 ` What I miss from Cogito Theodore Tso
2008-03-23 17:46   ` H. Peter Anvin
2008-03-27  2:36     ` Petr Baudis
2008-03-23 18:21   ` Luciano Rocha
2008-03-23 19:00     ` Mike Hommey
2008-03-23 19:07       ` Bruce Stephens
2008-03-23 19:07       ` Mike Hommey
2008-03-23 19:14     ` Florian Weimer
2008-03-24  0:16       ` Theodore Tso
2008-03-24  1:40         ` Björn Steinbrink
2008-03-24  2:14           ` Theodore Tso
2008-03-24  2:53             ` Junio C Hamano
2008-03-24  3:06               ` [PATCH] Documentation/git-checkout: Update summary to reflect current abilities Julian Phillips
2008-03-24 16:49                 ` Junio C Hamano
2008-03-24  3:06                   ` Julian Phillips
2008-03-24  2:57             ` What I miss from Cogito Björn Steinbrink
2008-03-23 18:31 ` Johannes Schindelin
2008-03-23 18:34 ` Junio C Hamano
2008-03-23 18:58   ` H. Peter Anvin
2008-03-23 18:59     ` Junio C Hamano
2008-03-23 19:16 ` Daniel Barkalow
2008-03-23 19:19   ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47E69044.3000207@zytor.com \
    --to=hpa@zytor.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.