Re: [PATCH 9/9] gitweb: Separate printing difftree in git_commit into git_difftree_body
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 15, 2006, 00:40 UTC
- Message-ID
- <7vfyfybzlf.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <200608140218.33872.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 11 quoted lines
> + if ($status eq "A") { # created
>...
> + } elsif ($status eq "D") { # deleted
>...
> + } elsif ($status eq "M" || $status eq "T") { # modified, or type changed
>...
> + } elsif ($status eq "R") { # renamed
>...
> + } elsif ($status eq "C") { # copied
>...
> + } # we should not encounter Unmerged (U) or Unknown (X) statusThe body of these still seem to have quite a lot of similarities. Maybe further refactoring is in the works?