git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: skillzero@gmail.com
To: git@vger.kernel.org
Subject: Re: git commit <path> scanning entire working tree?
Date: Mon, 16 Feb 2009 19:37:57 -0800	[thread overview]
Message-ID: <2729632a0902161937o4ac3a1aeg143dda509ba5e384@mail.gmail.com> (raw)
In-Reply-To: <7vwsbpewkl.fsf@gitster.siamese.dyndns.org>

On Mon, Feb 16, 2009 at 4:28 PM, Junio C Hamano <gitster@pobox.com> wrote:
>
> Do you mean you edit the commit message, starting from the message
> template "git commit" gives you?

Yes, there's a large delay from me entering 'git commit -a' and when
the editor shows up.

> The template lists "Changes to be committed" (which obviously would list
> only the path that matches the single pathspec you give to the command,
> and there is no need to scan the whole tree -- it only needs to check the
> file or a directory hierarchy if the pathspec matches a directory), but
> also "Changed but not updated" and "Untracked files".  You cannot generate
> the latter two lists without checking with your work tree.

It seems like it shouldn't scan/show things outside of the path. If
I've specified a path on the command line, I most likely only care
about things in that path. I think it would make committing specific
paths much faster when you have a large tree. However, it would
eliminate information (changed/untracked files outside that path), if
people are relying on that.

  parent reply	other threads:[~2009-02-17  3:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16 22:58 git commit <path> scanning entire working tree? skillzero
2009-02-17  0:28 ` Junio C Hamano
2009-02-17  2:57   ` Boyd Stephen Smith Jr.
2009-02-17  3:37   ` skillzero [this message]
2009-02-17  5:50     ` Boyd Stephen Smith Jr.
2009-02-17  7:12     ` Junio C Hamano
2009-02-18  2:25       ` skillzero

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=2729632a0902161937o4ac3a1aeg143dda509ba5e384@mail.gmail.com \
    --to=skillzero@gmail.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 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).