From: Juergen Ruehle Date: Fri, 05 Jan 2007 16:54:49 GMT Subject: Re: a few remaining issues... Message-ID: <17822.33497.895000.694542@lapjr.intranet.kiel.bmiag.de> In-Reply-To: <7v7iw1hgvt.fsf@assigned-by-dhcp.cox.net> Junio C Hamano writes: > * Handling paths that are unknown to the index. > > I sent out patches tonight to teach "git reset -- " > to restore the absense of path in the index from the tree > tonight. There was another one recently brought up on the list: > "git commit -- " for path that is no longer known to the > index. While jumping the index is a practice I particularly do > not want to encourage by extending git to support it, we already > have support for most of the cases, so I think it makes sense to > do this for consistency. I haven't thought about the necessary > changes yet, so people can beat me if they want to. My vague > idea is to check HEAD to see if exists and if so refrain > from complaining. This looks like a job for your para-walk topic. For this git-commit case we just need a git-ls --no-workdir --error-unmatch HEAD -- ... to replace git-ls-files. To my untrained eyes it looks like this is mostly there (AFAICS it doesn't do pattern matching and the --error-unmatch thingy).