From: Junio C Hamano Date: Tue, 15 Jan 2008 23:23:21 GMT Subject: Re: [PATCH] safecrlf: Add flag to convert_to_git() to disable safecrlf check Message-ID: <7vodbmd66u.fsf@gitster.siamese.dyndns.org> In-Reply-To: Steffen Prohaska 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.