Re: [PATCH 3/9] count_pathspec(): return number of elements in pathspec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 10, 2011 at 12:51 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> When fed a non-empty argv[], get_pathspec(prefix, argv) used to always
> return an array of string that has the same number of elements as argv[]
> had, but with ":" (work at toplevel without any path limit) magic pathspec
> it can return zero elements. ÂPassing the result from get_pathspec() to
> this function will always give the correct number of pathspec elements.

And use the new function in builtin/rm.c too? A good cleanup while
you're touching cmd_rm()..
-- 
Duy
--
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


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]