Jeff King <peff@peff.net> writes:I think you would end up spitting out: COLOR something RESET LF COLOR RESET LF instead of: COLOR something RESET LF LF when you get "something\n\n" if you did that. Not a big deal, though, as at this point we would be human I/O bound. Making it take a FH would be useful. With that, my proof-of-concept patch to add print_diff_hunk would become: sub print_diff_hunk { my ($text) = @_; my $pager; if ($use_pager) { open($pager, "| less"); } else { $pager = \*STDOUT; } for (@$text) { print_colored $pager $color ... } close($pager); } - 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
| Andrew Morton | -mm merge plans for 2.6.23 |
| Benjamin Herrenschmidt | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Mel Gorman | [PATCH 6/8] x86_64 - Specify amount of kernel memory at boot time |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | Re: Soft-Lockup/Race in networking in 2.6.31-rc1+195 ( possibly?caused by netem) |
