Stefan Beller <stefanbeller@xxxxxxxxxxxxxx> writes: > On 07/23/2013 08:32 PM, Junio C Hamano wrote: >> Interesting. This is ancient and dates back to 7612a1ef (git-rm: >> honor -n flag., 2006-06-08). > Originally it comes from d9b814cc97 (by Linus), which introduced: > + seen = NULL; > + if (pathspec) { > + for (i = 0; pathspec[i] ; i++) > + /* nothing */; > + seen = xmalloc(i); > + memset(seen, 0, i); > + } > > Then in 7612a1efdb0c the second seen assignment was made unconditional. That is why I blamed the bug to 7612a1ef. Before that, without pathspec, directory traversal function were told not to report which ones were seen and which ones were not by passing seen=NULL. -- 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