git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Björn Steinbrink" <B.Steinbrink@gmx.de>
To: Constantine Plotnikov <constantine.plotnikov@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
	Jon Seymour <jon.seymour@gmail.com>,
	Jakub Narebski <jnareb@gmail.com>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: git-ls-files --added?
Date: Mon, 25 May 2009 09:46:06 +0200	[thread overview]
Message-ID: <20090525074606.GA30061@atjola.homenet> (raw)
In-Reply-To: <85647ef50905250031m375a14d9y252444a8bdc250b5@mail.gmail.com>

On 2009.05.25 11:31:42 +0400, Constantine Plotnikov wrote:
> BTW git-diff won't work in situation when the directory was just
> initialized and there were no commit. In that case added file = staged
> file and it is possible to use git-ls-files.

You can use the object name of the empty tree with diff-* in that case,
that's what the pre-commit.sample hook does.

Björn

  reply	other threads:[~2009-05-25  7:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-24  7:54 git-ls-files --added? Jon Seymour
2009-05-24  8:37 ` Jakub Narebski
2009-05-24  9:12   ` Jon Seymour
2009-05-24 18:17     ` Junio C Hamano
2009-05-25  6:33       ` Junio C Hamano
2009-05-25  7:31         ` Constantine Plotnikov
2009-05-25  7:46           ` Björn Steinbrink [this message]
2009-05-26  0:56         ` Jon Seymour
2009-05-29 21:26           ` David Aguilar
2009-05-29 22:01             ` Nanako Shiraishi
2009-05-29 23:06               ` Junio C Hamano
2009-05-30  6:02                 ` David Aguilar
2009-05-31 16:19                   ` Tony Finch

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=20090525074606.GA30061@atjola.homenet \
    --to=b.steinbrink@gmx.de \
    --cc=constantine.plotnikov@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jnareb@gmail.com \
    --cc=jon.seymour@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).