chiark / gitweb /
wip changes for remote push - implement i_param
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 9 Oct 2013 06:49:54 +0000 (07:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 9 Oct 2013 06:49:54 +0000 (07:49 +0100)
dgit

diff --git a/dgit b/dgit
index 9d2d8769974355e5fcd7135225295cbb589d1c87..2e7df8e2862fd113e502e1193ca31d6a20ad22fd 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -144,6 +144,8 @@ sub fetchspec () {
 #  > file begin changes
 #  [etc]
 #
+#  > param head HEAD
+#
 #  > want signed-tag
 #  [indicates that signed tag is wanted]
 #  < data-block NBYTES
@@ -1433,6 +1435,15 @@ sub i_resp_file ($) {
     protocol_receive_file \*RO, $localpath;
 }
 
+our %i_param;
+
+sub i_param ($) {
+    $_[0] =~ m/^(\S+) (.*)$/;
+    $i_param{$1} = $2;
+}
+
+our %i_wanted;
+
 sub i_resp_want ($) {
     my ($keyword) = @_;
     my @localpaths = i_method "i_want_", $keyword;