Re: [PATCH 2/4] add -u: get rid of "treewideupdate" configuration

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

 



Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> writes:

> On Sat, Apr 9, 2011 at 11:58 AM, Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> wrote:
>> On Sat, Apr 9, 2011 at 6:18 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote:
>>> Also make ':' without anything else to mean "there is no pathspec". ÂThis
>>> would allow differences between "git log" and "git log ." run from the top
>>> level of the working tree (the latter simplifies no-op commits away from
>>> the history) to be expressed from a subdirectory by saying "git log :".
>>
>> The intention is good, but reality may need more work.
>
> Wait, what if I say "git grep -- : foo : bar"? I take it we should
> reject on this case?

The patch probably would stuff NULL, "foo", NULL, "bar" in the array, and
the first NULL would make the caller turn the array itself into NULL; it
is a user error I didn't have to bother while the topic is still in a PoC
stage.



--
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]