Re: GSoC 2010: "Integrated Web Client for git" proposal

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jakub Narebski
Date: Tuesday, April 20, 2010 - 11:14 am

On Mon, Apr 19, 2010, Petr Baudis wrote:


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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
GSoC 2010: "Integrated Web Client for git" proposal, Christian Couder, (Wed Apr 14, 9:30 pm)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Sun Apr 18, 1:52 am)
GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Sun Apr 18, 11:35 pm)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Sun Apr 18, 11:46 pm)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Mon Apr 19, 12:38 am)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Mon Apr 19, 5:57 am)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Mon Apr 19, 10:55 am)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Mon Apr 19, 11:03 am)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Mon Apr 19, 11:10 am)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Tue Apr 20, 5:17 am)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Jakub Narebski, (Tue Apr 20, 11:14 am)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Wed Apr 21, 1:49 pm)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Thu Apr 22, 2:53 pm)
Re: GSoC 2010: "Integrated Web Client for git" proposal, Pavan Kumar Sunkara, (Thu Apr 22, 10:42 pm)