Subject: Re: [PATCH] safecrlf: Add flag to convert_to_git() to disable safecrlf check

From: Junio C Hamano <[email-masked]>
Date: Tue, 15 Jan 2008 15:23:21 -0800

Steffen Prohaska <[email-masked]> 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.