Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: [PATCH] git-add--interactive: manual hunk editing mode

From: Jeff King <hidden>
Date: 2016-06-15 22:44:52

Possibly related (same subject, not in this thread)

On Tue, Jul 01, 2008 at 10:39:58PM -0700, Junio C Hamano wrote:
quoted
+use File::Temp;
People with minimum Perl installation should still be able to use "add -i"
as long as they do not use 'e' subcommand, shouldn't they?  Shouldn't we
do something like:

	my $can_use_temp = eval {
        	require File::Temp;
                1;
	};

and disable 'e' subcommand unless $can_use_temp?
According to Module::CoreList, File::Temp has shipped as part of core
perl since 5.006001. "add -i" doesn't work with perl < 5.6 already due to
things like 3-argument open.

So if the problem is "old perl", I don't think it is an issue. Are there
modern perl installations in the wild that don't have File::Temp?

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help