Re: [PATCH] safecrlf: Add flag to convert_to_git() to disable safecrlf check
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 15, 2008, 23:23 UTC
- Message-ID
- <7vodbmd66u.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <FF86F119-5BF4-4ED3-B6AD-BADFDC91301D@zib.de>
Steffen Prohaska <prohaska@zib.de> writes:
> What is the right way to iterate over the changed files?
I think something like
read_cache();
for (i = 0; i < active_nr; i++) {
struct cache_entry *ce = active_cache[i];
struct stat st;
if (!lstat(ce->name, &st) &&
ce_match_stat(ce, &st, 0)) {
/* do your thing */
}
}would do.