From: Jakub Narebski <jnareb@gmail.com>
To: Jon Seymour <jon.seymour@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: git-ls-files --added?
Date: Sun, 24 May 2009 01:37:11 -0700 (PDT) [thread overview]
Message-ID: <m3fxeudhho.fsf@localhost.localdomain> (raw)
In-Reply-To: <2cfc40320905240054j2c08da8bt4df95c6f1bc9e254@mail.gmail.com>
Jon Seymour <jon.seymour@gmail.com> writes:
> Is there a reason why git-ls-files does not have an --added option?
>
> I'd like to get a list of new files, due to be committed. Currently, I
> have to parse the output of git status to get that, but it seems like
> a reasonable function for git-ls-files.
You can use git-diff-* with --name-only and --diff-filter=A for
that; you shouldn't parse result of porcelain git-status.
And there is also contrib/examples/git-commit.sh as a guideline...
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2009-05-24 8:37 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 [this message]
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
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=m3fxeudhho.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.