git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nguyen Thai Ngoc Duy <pclouds@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] init-db: support --import to add all files and commit  right after init
Date: Wed, 25 Mar 2009 13:27:52 +1100	[thread overview]
Message-ID: <fcaeb9bf0903241927h5b4d20b9r30fd67c26e63c6f5@mail.gmail.com> (raw)
In-Reply-To: <20090325021458.GY23521@spearce.org>

On Wed, Mar 25, 2009 at 1:14 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
> Nguy???n Th??i Ng???c Duy <pclouds@gmail.com> wrote:
>> This is equivalent to "git init;git add .;git commit -q -m blah".
>> I find myself doing that too many times, hence this shortcut.
>
> Why not:
>
>  git config --global alias.init-import '!git init && git add . && git commit -q'

1. less setup on new machine
2. fast-import support (not yet though)
-- 
Duy

  reply	other threads:[~2009-03-25  2:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-25  2:09 [PATCH] init-db: support --import to add all files and commit right after init Nguyễn Thái Ngọc Duy
2009-03-25  2:14 ` Shawn O. Pearce
2009-03-25  2:27   ` Nguyen Thai Ngoc Duy [this message]
2009-03-25  3:51 ` Johannes Schindelin
2009-03-25  4:25   ` Nguyen Thai Ngoc Duy
2009-03-25  4:19 ` Jeff King
2009-03-25  4:32   ` Nguyen Thai Ngoc Duy
2009-03-25  4:49     ` Jeff King
2009-03-31  9:09   ` Miles Bader
2009-03-31  9:27     ` Jeff King

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=fcaeb9bf0903241927h5b4d20b9r30fd67c26e63c6f5@mail.gmail.com \
    --to=pclouds@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=spearce@spearce.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).