* create easy to parse list of added / ,odified files
@ 2010-09-03 6:36 Gelonida
2010-09-03 6:39 ` Jonathan Nieder
0 siblings, 1 reply; 3+ messages in thread
From: Gelonida @ 2010-09-03 6:36 UTC (permalink / raw)
To: git
Hi,
for a pre-commit trigger I would like to retrieve the list of modified
files, such, that I could analyze the contents prior to commit.
what would be the best command for this
I thought about using "git status", but wondered, which other command
might return a nicer to parse list.
TIA
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: create easy to parse list of added / ,odified files
2010-09-03 6:36 create easy to parse list of added / ,odified files Gelonida
@ 2010-09-03 6:39 ` Jonathan Nieder
2010-09-05 21:50 ` Gelonida
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Nieder @ 2010-09-03 6:39 UTC (permalink / raw)
To: Gelonida; +Cc: git
Hi,
Gelonida wrote:
> for a pre-commit trigger I would like to retrieve the list of modified
> files, such, that I could analyze the contents prior to commit.
>
> what would be the best command for this
>
>
> I thought about using "git status", but wondered, which other command
> might return a nicer to parse list.
If you look at the git(1) man page, you will find a number of such
"low-level (plumbing) interrogation commands" listed. For example:
. git diff-index
. git diff-files
. git update-index
. git status --porcelain
Hope that helps.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: create easy to parse list of added / ,odified files
2010-09-03 6:39 ` Jonathan Nieder
@ 2010-09-05 21:50 ` Gelonida
0 siblings, 0 replies; 3+ messages in thread
From: Gelonida @ 2010-09-05 21:50 UTC (permalink / raw)
To: git
Hi Jonathan,
On 09/03/2010 08:39 AM, Jonathan Nieder wrote:
> Gelonida wrote:
>
>> for a pre-commit trigger I would like to retrieve the list of modified
>> files, such, that I could analyze the contents prior to commit.
>>
>> what would be the best command for this
>>
>>
>> I thought about using "git status", but wondered, which other command
>> might return a nicer to parse list.
>
> If you look at the git(1) man page, you will find a number of such
> "low-level (plumbing) interrogation commands" listed. For example:
>
> . git diff-index
> . git diff-files
> . git update-index
> . git status --porcelain
>
Thanks for your answer.
I'm currently using
git diff-index HEAD --cached
This seems to do what I was looking for.
git status --porcelain
doesn't exist on my old cygwin git (I assume it's proably a little too old)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-05 21:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-03 6:36 create easy to parse list of added / ,odified files Gelonida
2010-09-03 6:39 ` Jonathan Nieder
2010-09-05 21:50 ` Gelonida
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).