The other day, Junio lamented:I think the two aspects of my implementation that are favorable are the slightly more general table-driven string interplotion routine and the generalization of the interface to the upload() call here: @@ -310,8 +377,14 @@ #endif if (len && line[len-1] == '\n') line[--len] = 0; - if (!strncmp("git-upload-pack ", line, 16)) - return upload(line+16); + if (len != pktlen) { + parse_extra_args(line + len + 1, pktlen - len - 1); + } + + if (!strncmp("git-upload-pack ", line, 16)) { + interp_table[INTERP_SLOT_DIR].value = line+16; + return upload(interp_table); + } Naturally, I only placed entries into the interpolation table that I needed to get my code working, but it could easily be extended and filled with additional entries such as the %u for user paths and %IP for IP address, etc. I might even recommend some form of lower-case-izing option too. In any event, we should clearly attempt to unify my proposed implementation with Pierre's proposal. jdl - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Andi Kleen | Re: [PATCH] Add IPv6 support to TCP SYN cookies |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| KAMEZAWA Hiroyuki | Re: 2.6.23-mm1 |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [PATCH 3/3] Convert the UDP hash lock to RCU |
