diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-10-09 07:49:54 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-10-09 07:49:54 +0100 |
commit | b944f517c8b2886ef3adda8bc1b72adacb243d29 (patch) | |
tree | c520f8cbcf7f9000800b661d6d05b522c6bf3632 | |
parent | 25f567819dab569d2f9bbe31626f32197b799e7d (diff) |
wip changes for remote push - implement i_param
-rwxr-xr-x | dgit | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |