I'm sorry for the delay in reviewing this patch...
On Mon, 27 Oct 2008, Huy Blucher wrote:
[Please try do not lose attributions...]
> > >
I would prefer if instead of adding new 'historyfollow' action, which
goes against stated in TODO goal of uniquifying log-like views handling,
the patch added support for '--follow' as extra option to 'history'
view (i.e. a=history;opt=--follow)... on the other hand 'historyfollow'
(or simply 'follow') can be used in pure path_info gitweb URL... Hmm...
>
Either that, or use --pretty=format: which mimics current use of
"git-rev-list " output in parse_commits exactly.
And either move parse_commits to use git-log, change git-rev-parse to
understand '--follow', or make parse_commits use git-log with --follow,
git-rev-list otherwise.
>
RFC (usually marked [RFC/PATCH]) patches are good because they allow
others to test and comment on your solution: early review, better to
spot bugs etc. earlier.
>
It would be nice though if such [RFC/PATCH] followed guidelines from
SubmittingPatches on commit messages...
>
Diffstat?
>
Can't you simply pass '--follow' or 'follow' in @args instead of
changing the signature of parse_commits?
> my @cos;
I don't understand. Do you mean that
$ git log --max-count= --follow --
doesn't work as expected? Hmmm... true, it doesn't work.
Then it is certainly a _BUG_ in git!
>
Whitespace damage (here visible).
> ("--skip=" . $skip),
Doesn't it work if you don't add the above line?
> + # Need to strip the word commit from the start so it
Perhaps we should update parse_commit_text instead... or add an option
like parse_commit_text($line, -format=>'log'), or something like that.
> push @cos, \%co;
I don't quite like this solution...
If '--follow' was passed through @extra_options ('opt') parameter, then
it should be re-used in links thanks to href(..., -replay=>1).
> if (!defined $hash_base) {
Word wrapped (not only here).
> or die_error(404, "No such file or directory on given
I would add opts=>[@extra_options] instead of changing action=>"history"
to action=>$history_call (the quotes around variable are not needed).
> $paging_nav .= " ⋅ " .
What I would like to see is the link in the bottom of action bar
(navbar) or just below it, which would list 'follow' as one of possible
'history' view formats (just like '--no-merges' or '--first-parent'
should be).