Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion {beermates.js} Power shortcuts for Git (and other SCM) nerds

Received: by 10.204.136.216 with SMTP id s24mr2415134bkt.5.1319303519471;
        Sat, 22 Oct 2011 10:11:59 -0700 (PDT)
X-BeenThere: hackerspacesg@googlegroups.com
Received: by 10.204.29.7 with SMTP id o7ls1536382bkc.2.gmail; Sat, 22 Oct 2011
 10:11:58 -0700 (PDT)
Received: by 10.204.140.67 with SMTP id h3mr2415260bku.3.1319303517997;
        Sat, 22 Oct 2011 10:11:57 -0700 (PDT)
Received: by 10.204.140.67 with SMTP id h3mr2415258bku.3.1319303517976;
        Sat, 22 Oct 2011 10:11:57 -0700 (PDT)
Return-Path: <rcta...@gmail.com>
Received: from mail-bw0-f42.google.com (mail-bw0-f42.google.com [209.85.214.42])
        by gmr-mx.google.com with ESMTPS id n1si2685610bkn.1.2011.10.22.10.11.57
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sat, 22 Oct 2011 10:11:57 -0700 (PDT)
Received-SPF: pass (google.com: domain of rcta...@gmail.com designates 209.85.214.42 as permitted sender) client-ip=209.85.214.42;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of rcta...@gmail.com designates 209.85.214.42 as permitted sender) smtp.mail=rcta...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by mail-bw0-f42.google.com with SMTP id zv15so6395206bkb.29
        for <multiple recipients>; Sat, 22 Oct 2011 10:11:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=z3IPhGp9bSYH3YZer2c/FPKb68l3xKQJ10bXqTaE3PQ=;
        b=j2MqRdqe3pMs9zlTauJxXu3Z5DmujQ5jRiYRroLL1GGqA43R2Vrk/JVKcR2HmG5qFr
         wAtR7r5tMQBNabtoTHq7T/Cd8D/axbglH0E1PC20/hNB+FMnmKtU0uEmAIIpk2Hi9Z9x
         cEwlXSZleXCy2VYsFbJAP1f8aim182PAtDeqE=
MIME-Version: 1.0
Received: by 10.223.15.10 with SMTP id i10mr32132321faa.17.1319303517664; Sat,
 22 Oct 2011 10:11:57 -0700 (PDT)
Received: by 10.223.83.2 with HTTP; Sat, 22 Oct 2011 10:11:57 -0700 (PDT)
In-Reply-To: <CAGDSnyAHwB_t9pFMo4-bzSjt+TKMv+Onjd2h5ESDDY=cp0N2cQ@mail.gmail.com>
References: <1319293346.4950.YahooMail...@web160304.mail.bf1.yahoo.com>
	<CAGDSnyAHwB_t9pFMo4-bzSjt+TKMv+Onjd2h5ESDDY=cp0N...@mail.gmail.com>
Date: Sun, 23 Oct 2011 01:11:57 +0800
Message-ID: <CALUzUxqSv-y-KmcUfqqvpA=dHiv4DrZ1P46Y=XUBUecyTKF...@mail.gmail.com>
Subject: Re: [HackerspaceSG] Re: {beermates.js} Power shortcuts for Git (and
 other SCM) nerds
From: Tay Ray Chuan <rcta...@gmail.com>
To: hackerspacesg@googlegroups.com
Cc: beermatesjs@googlegroups.com, nushackers <nushackers@googlegroups.com>, 
	Python Singapore <pythonsg@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sat, Oct 22, 2011 at 11:29 PM, Tamas Herman <hermanta...@gmail.com> wrote:
> most common idiocity is to just version control everything in the project
> directory, no matter if it's already version controlled somewhere or not.
> git encourages this because it gives no easy way _by default_ to easily
> pick the files u want to add to the repo.

Are you talking about

  $ git add --all

? You can use

  $ git add <path1> <path2>...

instead, just don't say 'git add .' (dot) that adds all files under
the directory you're in.

> it's not obvious how to checkout only the current state without the
> full history.

I believe the feature you're referring to in Darcs is

  $ darcs get --lazy

? In git, this is known as a shallow clone, you can do it with

  $ git clone --depth 1

but I think you already know this. You may be right that it's not
obvious how to do this in git from the documentation, most people just
grit their teeth through a full clone.

> in darcs even this is interactive and obvious...
> all this is magnified when u try to do things on a lower bandwidth...

Speaking about interactivity, yeah, in most places git doesn't enable
it by default, you have to specify it with a switch. IIRC,
interactivity seems more like an afterthought, being implemented with
Perl (eg. git add -p).

-- 
Cheers,
Ray Chuan