On Mon, Oct 22, 2007 at 04:40:48PM -0500, Dan Zwell wrote:Why not do it as part of this patch, then? I think it might be a bit more readable to keep the assignment and defaults together: my @git_prompt_color = split /\s+/, qx(git config --get color.interactive.prompt) || 'blue bold'; Though I wonder why we are splitting here at all, since we just end up converting the list into a scalar below. And if we just turned that into a function, we could get a nice: my $prompt_color = git_color_to_ansicolor( qx(git config --get color.interactive.prompt) || 'blue bold'); -Peff - 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
| Christoph Lameter | Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Pekka Enberg | Re: [bug] mm/slab.c boot crash in -git, "kernel BUG at mm/slab.c:2103!" |
| Glauber de Oliveira Costa | [PATCH 08/79] [PATCH] use identify_boot_cpu |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| David Miller | [GIT]: Networking |
