At the end, in the section which describes what would be not included
in the project, there was editing files excluded from project.
Which is a bit strange because you need some kind of web editor (even
if it is simply textarea) for the commit message if this "Web Client"
is to implement [git commit]...
What do you mean here by "working tree - index dichotomy"?
It is not that difficult. You can use IPC::Open2 (which is in core)
and IO::Handle (for easier coding; using IO::Handle is not strictly
necessary), like that:
use IPC::Open2 qw(open2);
use IO::Handle;
...
my $pid = open2($out, $in, git_cmd(), 'hash-object', '-w', '--stdin');
$in->printflush($cgi->param('textarea'))
or die...;
my $sha1 = $out->getline();
chomp $sha1;
close $out;
waitpid $pid, 0;
Then you would need:
system(git_cmd(), 'update-index', '--cacheinfo',
'100644', $sha1, $pretend_path)
or die...;
Not tested!
--
Jakub Narebski
Poland
--
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