From: Jeff King <peff@peff.net>
To: Nguyen Thai Ngoc Duy <pclouds@gmail.com>
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 00:49:09 -0400 [thread overview]
Message-ID: <20090325044909.GA21311@coredump.intra.peff.net> (raw)
In-Reply-To: <fcaeb9bf0903242132k71e78219xfda5553854df4a2c@mail.gmail.com>
On Wed, Mar 25, 2009 at 03:32:17PM +1100, Nguyen Thai Ngoc Duy wrote:
> I tend to do "commit -q -m i", not a big deal for two more keystrokes.
> My initial version allowed "git init /path/to/workdir" too so it might
> be ambiguous for optional message. So all vote for "Initial commit"?
> Dynamic message seems overkill because most of the cases, this is a
> throw away repository.
Initial commit is fine with me. I plan to use this mostly for throw-away
repositories. I was thinking it might be useful for this:
tar xzf package-0.1.tar.gz
cd package-0.1
git init --import
so that later you remember it came from package-0.1 (when you are
looking at package 0.2). OTOH, if we take the information from the
directory, then the fact that it came from 0.1 is by definition already
in the directory name. So it is pretty pointless unless you later
rename the directory to just "package".
> > I seem to recall that we were phasing out "--long-option <arg>" at some
> > point, and that all long-options should use "--long-option=". But maybe
> > I am mis-remembering.
>
> I did not know too. Any reference?
I was, in fact, mis-remembering. The problem is not about long versus
short options, but rather about options which have an optional value.
See "Separating argument from the option" in "git help cli".
However, what we are discussing above _is_ making it an optional value,
in which case "--import <arg>" would have no value for "--import".
-Peff
next prev parent reply other threads:[~2009-03-25 4:55 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
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 [this message]
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=20090325044909.GA21311@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=pclouds@gmail.com \
/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).