Re: create easy to parse list of added / ,odified files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]