]> git.ipfire.org Git - thirdparty/git.git/commit - git-add--interactive.perl
add -p: import Term::ReadKey with 'require'
authorThomas Rast <trast@student.ethz.ch>
Fri, 6 Feb 2009 19:30:01 +0000 (20:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Feb 2009 08:37:36 +0000 (00:37 -0800)
commit748aa689bac2c1dd5d902815b0dec6364d20bf34
treee75bb75d10c5da84beca3a0ede816272c72471bc
parenta301973641f426ab42e5bf9faa6e4da5bd658148
add -p: import Term::ReadKey with 'require'

eval{use...} is no good because the 'use' is evaluated at compile
time, so manually 'require' it.  We need to forward declare the
functions we use, otherwise Perl raises a compilation error.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl