"Nguyen Thai Ngoc Duy" <pclouds@xxxxxxxxx> writes: > On 12/12/08, Johannes Sixt <j.sixt@xxxxxxxxxxxxx> wrote: > ... >> But what if the same persion notices a #define in a kdeutils header file >> and want's to know whether it is unused in order to remove it: >> >> $ git grep FOO >> kdeutils/foo.h:#define FOO bar > > "git grep --cached FOO" ? That should behave identically when the work tree does not have change since the index, and by definition paths outside the checkout area in the "sparse" mode cannot have changes, so "git grep FOO" should behave the same and should find it. -- 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