* Re: list of files that have been added/removed
@ 2009-04-15 21:37 layer
2009-04-15 21:42 ` Eric Raible
2009-04-15 21:43 ` Junio C Hamano
0 siblings, 2 replies; 5+ messages in thread
From: layer @ 2009-04-15 21:37 UTC (permalink / raw)
To: git
I see the changes in the index with "git status" as "deleted" or
"added".
I meant "new file" here. Of course I can process the output of "git
status", but I was looking for a cleaner method, if there is one.
Thanks.
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list of files that have been added/removed
2009-04-15 21:37 list of files that have been added/removed layer
@ 2009-04-15 21:42 ` Eric Raible
2009-04-15 21:43 ` Junio C Hamano
1 sibling, 0 replies; 5+ messages in thread
From: Eric Raible @ 2009-04-15 21:42 UTC (permalink / raw)
To: git
layer <layer <at> known.net> writes:
>
> I see the changes in the index with "git status" as "deleted" or
> "added".
>
> I meant "new file" here. Of course I can process the output of "git
> status", but I was looking for a cleaner method, if there is one.
>
> Thanks.
>
> Kevin
>
Perhaps:
git diff --name-only
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list of files that have been added/removed
2009-04-15 21:37 list of files that have been added/removed layer
2009-04-15 21:42 ` Eric Raible
@ 2009-04-15 21:43 ` Junio C Hamano
2009-04-15 21:57 ` layer
1 sibling, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2009-04-15 21:43 UTC (permalink / raw)
To: layer; +Cc: git
layer <layer@known.net> writes:
> I see the changes in the index with "git status" as "deleted" or
> "added".
>
> I meant "new file" here. Of course I can process the output of "git
> status", but I was looking for a cleaner method, if there is one.
"Process" as in "Read in a script and have it act on the information"?
git diff-index --name-status HEAD
would be one Kosher way for the scripts, and if your scripting language
can handle NUL terminated string, giving -z option would make your script
more robust against funny pathnames.
git diff-index --name-only --diff-filter=A HEAD
if you only care about "new file" and nothing else.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list of files that have been added/removed
2009-04-15 21:43 ` Junio C Hamano
@ 2009-04-15 21:57 ` layer
0 siblings, 0 replies; 5+ messages in thread
From: layer @ 2009-04-15 21:57 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Junio C Hamano <gitster@pobox.com> wrote:
>> layer <layer@known.net> writes:
>>
>> > I see the changes in the index with "git status" as "deleted" or
>> > "added".
>> >
>> > I meant "new file" here. Of course I can process the output of "git
>> > status", but I was looking for a cleaner method, if there is one.
>>
>> "Process" as in "Read in a script and have it act on the
>> information"?
Yes. Junio, your answer was perfect. Thanks.
>>
>> git diff-index --name-status HEAD
>>
>> would be one Kosher way for the scripts, and if your scripting language
>> can handle NUL terminated string, giving -z option would make your script
>> more robust against funny pathnames.
>>
>> git diff-index --name-only --diff-filter=A HEAD
>>
>> if you only care about "new file" and nothing else.
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* list of files that have been added/removed
@ 2009-04-15 21:21 layer
0 siblings, 0 replies; 5+ messages in thread
From: layer @ 2009-04-15 21:21 UTC (permalink / raw)
To: git
I see the changes in the index with "git status" as "deleted" or
"added". What command wlil print just the filenames. I've been
searching and searching and no luck. Thanks!
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-04-15 21:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15 21:37 list of files that have been added/removed layer
2009-04-15 21:42 ` Eric Raible
2009-04-15 21:43 ` Junio C Hamano
2009-04-15 21:57 ` layer
-- strict thread matches above, loose matches on Subject: below --
2009-04-15 21:21 layer
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).