On Sun, Mar 18, 2007, Martin Koegler wrote:I assume you meant "e.g. it doesn't provide a way to compare commits on different branches". We can easily add selectbox not only for shortlog and history views, but also for heads view (which would allow to compare tips of different branches) and tags view (which would allow to compare [commits pointed to by] different tags). Although there is yet another limitation, namely that shortlog and history views are divided into pages... Well, I haven't though of it being a problem, because _I_ can have always handcraft an URL to get requested diff from gitweb. But after some thinking I guess that your idea has some merit _provided_ that "(base | diff)" (by the way, what would happen if someone would click "diff" without setting "base" first? is "diff" inactive, or is some "base" default?) is added _only_ when web browser supports it. It means that it should appear only when JavaScript is turned on (easy if links are added by JavaScript) and when cookies are turned on (I'm not sure if you are checking this). I guess that we could (under control of gitweb configuration, %feature hash or something like that) add links which would lead to server setting a cookie, or adding unused CGI parameters ('hp', 'hpb' and 'fp' are used only by 'diff' views). Diffs makes sense only between two commit-ish (commit-ish being commit or a tag; head also denotes a commit) for which we need 'h' and 'hp' params, between two tree-ish (tree-ish being tree, commit or a tag) for which we need 'h'/'hb' and 'hp'/'hpb' and usually 'f', sometimes 'fp', and finnally between two blobs, for which we need 'h'/'hb' and 'hp'/'hpb' and usually 'f', sometimes 'fp'. There makes no sense to compare tree-ish with blob, for example. By the way, I'm not that sure if gitweb handle correctly request for diff of two _different_ tree-ish, or two arbitrary different files. [...] NOTE: git_treediff is in some parts very similar (I think) to git_commitdiff with the exception of not being there commit message, nor links to parents, and I'd like very much to avoid code repetition (duplication) betweem git_treediff and git_commitdiff if possible. On the other hand git_treediff is similar to git_blob in handling its parameters ('h', 'hp' but also 'hb', 'hpb' and 'f', 'fp'). [...] Not much of a problem. Generation of links is consolidated in href() subroutine, and it would be fairly easy to add passing through base parameters, if they are needed or not. It means that if 'shortlog' view was passed 'hp' parameter then "diff" links (or "diff <sha1>" links, or "diff sel"/"diff selected" links) would lead to diff with given base. P.S. I find it strange that you don't send patches from git. If you want to test gitweb, you should have git installed. Why not fetch git.git repository, and send patches from it? -- Jakub Narebski Poland - 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
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Srivatsa Vaddagiri | containers (was Re: -mm merge plans for 2.6.23) |
| Benjamin Herrenschmidt | Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Patrick McHardy | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 6/7] [CCID-2/3]: Fix sparse warnings |
